mercurial/posix.py
changeset 16383 f5dd179bfa4a
parent 16241 60cc3a0d2249
child 16726 7002bb17cc5e
equal deleted inserted replaced
16382:f542d291c4f2 16383:f5dd179bfa4a
   331         return None
   331         return None
   332 
   332 
   333     if os.sep in command:
   333     if os.sep in command:
   334         return findexisting(command)
   334         return findexisting(command)
   335 
   335 
       
   336     if sys.platform == 'plan9':
       
   337         return findexisting(os.path.join('/bin', command))
       
   338 
   336     for path in os.environ.get('PATH', '').split(os.pathsep):
   339     for path in os.environ.get('PATH', '').split(os.pathsep):
   337         executable = findexisting(os.path.join(path, command))
   340         executable = findexisting(os.path.join(path, command))
   338         if executable is not None:
   341         if executable is not None:
   339             return executable
   342             return executable
   340     return None
   343     return None