~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzr

  • Committer: Martin Pool
  • Date: 2005-06-06 05:13:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050606051321-096739d92aa50664
- make sure bzr is always explicitly invoked through 
  python in case it's not executable

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
 
27
27
REINVOKE = "__BZR_REINVOKE"    
28
 
NEED_VERS = (2, 4)
29
 
KNOWN_PYTHONS = ('python2.4',)
 
28
NEED_VERS = (2, 3)
30
29
 
31
30
if version_info < NEED_VERS:
32
31
    if not os.environ.has_key(REINVOKE):
33
32
        # mutating os.environ doesn't work in old Pythons
34
33
        os.putenv(REINVOKE, "1")
35
 
        for python in KNOWN_PYTHONS:
 
34
        for python in 'python2.4', 'python2.3':
36
35
            try:
37
36
                os.execvp(python, [python] + sys.argv)
38
37
            except OSError: