diff options
Diffstat (limited to 'spawn.py')
-rw-r--r-- | spawn.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -173,7 +173,7 @@ def find_executable(executable, path=None): os.environ['PATH']. Returns the complete filename or None if not found. """ if path is None: - path = os.environ['PATH'] + path = os.environ.get('PATH', os.defpath) paths = path.split(os.pathsep) base, ext = os.path.splitext(executable) |