[Zodb-checkins] SVN: zodbbench/trunk/zodbbench/utils.py report():
Give directory info for the ZODB and Python in
Tim Peters
tim.one at comcast.net
Fri Oct 7 16:57:16 EDT 2005
Log message for revision 38906:
report(): Give directory info for the ZODB and Python in
use. I've got so many builds of both sitting around that
it's easy to forget which was in use.
Also try to deal w/ that sys.version can contain newlines
on some platforms.
Changed:
U zodbbench/trunk/zodbbench/utils.py
-=-
Modified: zodbbench/trunk/zodbbench/utils.py
===================================================================
--- zodbbench/trunk/zodbbench/utils.py 2005-10-07 20:31:20 UTC (rev 38905)
+++ zodbbench/trunk/zodbbench/utils.py 2005-10-07 20:57:15 UTC (rev 38906)
@@ -19,6 +19,7 @@
versions.
"""
+import os
import sys
import tempfile
@@ -112,11 +113,17 @@
"""Display a report to stdout.
The starts by listing the name of the benchmark (self.name and
- self.version), then gives the Python and ZODB versions in use, and
+ self.version), then gives the ZODB and Python versions in use, and
then displays `msg`.
"""
print "Benchmark %s, version %s" % (self.name, self.version)
- print "Python version:", sys.version
- print "ZODB version:", ZODB.__version__
+
+ print "ZODB:", ZODB.__version__
+ print " ", os.path.dirname(os.path.dirname(ZODB.__file__))
+
+ version = sys.version.replace("\n", " \n")
+ print "Python:", version
+ print " ", sys.executable
+
print msg
More information about the Zodb-checkins
mailing list