1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Daniel Hokka Zakrisson 2013-02-03 23:36:17 +01:00
parent a025cfcb33
commit d8d1f2cd7a

View file

@ -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: