mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Save modified environment path
This commit is contained in:
parent
2d43199d20
commit
20033eeeb7
@ -543,7 +543,7 @@ def which(exe=None):
|
||||
for default_path in ['/bin', '/sbin', '/usr/bin', '/usr/sbin', '/usr/local/bin']:
|
||||
if default_path not in search_path:
|
||||
search_path.append(default_path)
|
||||
|
||||
os.environ['PATH'] = os.pathsep.join(search_path)
|
||||
for path in search_path:
|
||||
full_path = os.path.join(path, exe)
|
||||
if _is_executable_file_or_link(full_path):
|
||||
|
Loading…
Reference in New Issue
Block a user