Update of /cvsroot/tmda/tmda/TMDA
In directory usw-pr-cvs1:/tmp/cvs-serv21428
Modified Files:
Version.py
Log Message:
Change Version.PLATFORM
Index: Version.py
===================================================================
RCS file: /cvsroot/tmda/tmda/TMDA/Version.py,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- Version.py 23 Apr 2002 18:27:34 -0000 1.33
+++ Version.py 30 Apr 2002 18:52:08 -0000 1.34
@@ -30,22 +30,20 @@
TMDA = "0.52+"
# Python version
-# e.g, 2.2
PYTHON = sys.version.split()[0]
try:
# System information (sysname, nodename, release, version, machine)
- # e.g, ('OSF1', 'spe147', 'V5.1', '1885', 'alpha')
+ # e.g, ('OpenBSD', 'server2', '3.0', 'PE2550_UP#0', 'i386')
UNAME = os.uname()
- SYSNAME = UNAME[0].replace(' ', '_').replace('/', '_') # OSF1
- MACHINE = UNAME[4].replace(' ', '_').replace('/', '_') # alpha
- PLATFORM = SYSNAME + '/' + MACHINE # OSF1/alpha
+ ARCH = UNAME[4].replace(' ', '_').replace('/', '_').lower()
+ PLATFORM = ARCH + '-' + sys.platform
except AttributeError:
# Fall back to using just sys.platform for PLATFORM if uname isn't
# available on this host.
- UNAME = SYSNAME = MACHINE = None
- PLATFORM = sys.platform # osf1V5
+ UNAME = ARCH = None
+ PLATFORM = sys.platform
# Summary of all the version identifiers
-# e.g, TMDA/0.49 (Python 2.2 on OSF1/alpha)
+# e.g, TMDA/0.52 (Python 2.2.1 on i386-openbsd3)
ALL = "TMDA/%s (Python %s on %s)" % (TMDA, PYTHON, PLATFORM)
_______________________________________________
tmda-cvs mailing list
http://libertine.org/lists/listinfo/tmda-cvs
|