From: allfro Date: Tue, 12 Mar 2013 20:23:18 +0000 (-0300) Subject: Fixed broken `fix_binpath` in Windows X-Git-Url: https://git.nothing2do.fr/?a=commitdiff_plain;h=cd56300052717d159c70cf3555b55f756c0b3a0b;p=get-hack-src.git Fixed broken `fix_binpath` in Windows --- diff --git a/src/canari/commands/common.py b/src/canari/commands/common.py index f97b0a8..8c213e2 100644 --- a/src/canari/commands/common.py +++ b/src/canari/commands/common.py @@ -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