diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 3ed74be998..9b00e750a2 100755 --- a/bin/ansible-galaxy +++ b/bin/ansible-galaxy @@ -199,8 +199,8 @@ def get_opt(options, k, defval=""): except: return defval if k == "roles_path": - if ":" in data: - data = data.split(':')[0] + if os.pathsep in data: + data = data.split(os.pathsep)[0] return data def exit_without_ignore(options, rc=1):