[Zope-CVS] CVS: Packages/autotester - autotest.py:1.5

Chris Withers chrisw at nipltd.com
Fri Sep 26 07:15:03 EDT 2003


Update of /cvs-repository/Packages/autotester
In directory cvs.zope.org:/tmp/cvs-serv28048/autotester

Modified Files:
	autotest.py 
Log Message:
record full python version info in the log.

=== Packages/autotester/autotest.py 1.4 => 1.5 ===
--- Packages/autotester/autotest.py:1.4	Fri Sep 26 07:04:06 2003
+++ Packages/autotester/autotest.py	Fri Sep 26 07:15:02 2003
@@ -133,9 +133,9 @@
 
     def get_platspec(self):
         """Return self.python and find out what version it is."""
-        cmd = self.python + ' -c "import sys; print sys.version[0:3]"'
-        self.logger.info(cmd)
-        f = os.popen(cmd)
+        cmd = self.python + ' -c "import sys; print sys.version%s"'
+        self.execute(cmd % '')
+        f = os.popen(cmd % '[0:3]')
         s = f.read().strip()
         f.close()
         return "%s-%s" % (get_platform(), s)




More information about the Zope-CVS mailing list