/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Alexander Belchenko
  • Date: 2007-09-04 11:20:50 UTC
  • mto: This revision was merged to the branch mainline in revision 2800.
  • Revision ID: bialix@ukr.net-20070904112050-muj2o81u0xuaheoz
show path to python dll instead of bzr.exe for standalone application

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
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
 
52
        # python executable
 
53
        print >>to_file, sys.executable,
 
54
    else:
 
55
        # pythonXY.dll
 
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))
 
61
 
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: