~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Gordon Tyler
  • Date: 2010-11-26 14:40:43 UTC
  • mto: (5321.1.101 mergetools)
  • mto: This revision was merged to the branch mainline in revision 5632.
  • Revision ID: gordon@doxxx.net-20101126144043-koda47j92jryqppi
find_executable_on_path should return None when the PATH is not defined.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2390
2390
    """
2391
2391
    path = os.environ.get('PATH')
2392
2392
    if path is None:
2393
 
        return False
 
2393
        return None
2394
2394
    exts = os.environ.get('PATHEXT', '').split(os.pathsep)
2395
2395
    if '' not in exts:
2396
2396
        exts.insert(0, '')