From d8d1f2cd7a8571350847eec247c087d734f7258e Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Sun, 3 Feb 2013 23:36:17 +0100 Subject: [PATCH] Split PATH on os.pathsep, that is what it's there for --- lib/ansible/module_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_common.py b/lib/ansible/module_common.py index 5c4732b678..38d5666cba 100644 --- a/lib/ansible/module_common.py +++ b/lib/ansible/module_common.py @@ -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: