equal
deleted
inserted
replaced
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 |