]> git.nothing2do.fr Git - get-hack-src.git/commitdiff
Fixed broken `fix_binpath` in Windows
authorallfro <ndouba@gmail.com>
Tue, 12 Mar 2013 20:23:18 +0000 (17:23 -0300)
committerallfro <ndouba@gmail.com>
Tue, 12 Mar 2013 20:23:18 +0000 (17:23 -0300)
src/canari/commands/common.py

index f97b0a83f2a71dca08b6d0557f0b0db6279b970d..8c213e2df737dc82265d9e10fc662173ca2e5450 100644 (file)
@@ -157,7 +157,7 @@ def fix_pypath():
 
 
 def fix_binpath(paths):
-    if paths is not None:
+    if paths is not None and paths:
         if isinstance(paths, basestring):
             os.environ['PATH'] = paths
         elif isinstance(paths, list):
@@ -271,4 +271,4 @@ def parse_bool(ans, default='y'):
         if ans.startswith('y'):
             return True
         elif ans.startswith('n'):
-            return False
\ No newline at end of file
+            return False