Skip to content

Commit

Permalink
Save modified environment path
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Maryniuk committed Nov 16, 2015
1 parent 2d43199 commit 20033ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/utils/__init__.py
Expand Up @@ -543,7 +543,7 @@ def _exe_has_ext():
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):
Expand Down

0 comments on commit 20033ee

Please sign in to comment.