~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Gordon Tyler
  • Date: 2009-11-30 00:48:51 UTC
  • mto: (4870.1.1 integration2)
  • mto: This revision was merged to the branch mainline in revision 4836.
  • Revision ID: gordon@doxxx.net-20091130004851-as4nnjedltpogxot
Fixed detection of bzr.exe when display python interpreter version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
    # show path to python interpreter
51
51
    # (bzr.exe use python interpreter from pythonXY.dll
52
52
    # but sys.executable point to bzr.exe itself)
53
 
    if getattr(sys, 'frozen', None) is not None:  # check for bzr.exe
54
 
        # python executable
 
53
    # however, sys.frozen exists if running from bzr.exe
 
54
    if getattr(sys, 'frozen', None) is None: # if not bzr.exe
55
55
        to_file.write(sys.executable + ' ')
56
56
    else:
57
57
        # pythonXY.dll