[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/ApplicationControl - RuntimeInfo.py:1.1.2.3
Philipp von Weitershausen
philikon@gmx.net
Thu, 11 Apr 2002 10:42:56 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/ApplicationControl
In directory cvs.zope.org:/tmp/cvs-serv3686
Modified Files:
Tag: Zope-3x-branch
RuntimeInfo.py
Log Message:
os.uname() is not available outside Unix. RuntimeInfo will return
sys.platform in that case instead.
=== Zope3/lib/python/Zope/App/OFS/ApplicationControl/RuntimeInfo.py 1.1.2.2 => 1.1.2.3 ===
def getSystemPlatform(self):
'See Zope.App.OFS.ApplicationControl.IRuntimeInfo.IRuntimeInfo'
- return os.uname()
+ if hasattr(os, "uname"):
+ return os.uname()
+ else:
+ return (sys.platform,)
def getCommandLine(self):
'See Zope.App.OFS.ApplicationControl.IRuntimeInfo.IRuntimeInfo'