Split PATH on os.pathsep, that is what it's there for

pull/1977/head
Daniel Hokka Zakrisson 12 years ago
parent a025cfcb33
commit d8d1f2cd7a

@ -577,7 +577,7 @@ class AnsibleModule(object):
for d in opt_dirs:
if d is not None and os.path.exists(d):
paths.append(d)
paths += os.environ.get('PATH', '').split(':')
paths += os.environ.get('PATH', '').split(os.pathsep)
bin_path = None
# mangle PATH to include /sbin dirs
for p in sbin_paths:

Loading…
Cancel
Save