From c37fa5ddce75b15838d16c0ef57835f5b6f7e411 Mon Sep 17 00:00:00 2001 From: James Tanner Date: Fri, 20 Dec 2013 12:13:22 -0500 Subject: [PATCH] Use os.pathsep to split roles_path instead of a colon --- bin/ansible-galaxy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ansible-galaxy b/bin/ansible-galaxy index 3ed74be998c..9b00e750a22 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):