~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/version.py

  • Committer: Martin Pool
  • Date: 2009-11-26 01:42:06 UTC
  • mfrom: (4827 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4828.
  • Revision ID: mbp@sourcefrog.net-20091126014206-qvf8jfpwpro558r4
merge news

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 not hasattr(sys, 'frozen'):  # check for bzr.exe
 
53
    if getattr(sys, 'frozen', None) is not None:  # check for bzr.exe
54
54
        # python executable
55
55
        to_file.write(sys.executable + ' ')
56
56
    else: