43
43
print >>to_file, " revision:", revno
44
44
print >>to_file, " revid:", src_revision_id
45
45
print >>to_file, " branch nick:", src_tree.branch.nick
46
47
print >>to_file, " Python interpreter:",
47
print >>to_file, sys.executable, '.'.join(map(str, sys.version_info))
48
# show path to python interpreter
49
# (bzr.exe use python interpreter from pythonXY.dll
50
# but sys.executable point to bzr.exe itself)
51
if not hasattr(sys, 'frozen'): # check for bzr.exe
53
print >>to_file, sys.executable,
56
basedir = os.path.dirname(sys.executable)
57
python_dll = "python%d%d.dll" % sys.version_info[:2]
58
print >>to_file, os.path.join(basedir, python_dll),
59
# and now version of python interpreter
60
print >>to_file, '.'.join(map(str, sys.version_info))
48
62
print >>to_file, " Python standard library:", os.path.dirname(os.__file__)
49
63
print >>to_file, " bzrlib:",
50
64
if len(bzrlib.__path__) > 1: