Browse code

Use os.pathsep to split roles_path instead of a colon

James Tanner authored on 2013/12/21 02:13:22
Showing 1 changed files
... ...
@@ -199,8 +199,8 @@ def get_opt(options, k, defval=""):
199 199
     except:
200 200
         return defval
201 201
     if k == "roles_path":
202
-        if ":" in data:
203
-            data = data.split(':')[0]
202
+        if os.pathsep in data:
203
+            data = data.split(os.pathsep)[0]
204 204
     return data
205 205
 
206 206
 def exit_without_ignore(options, rc=1):