From e61bebefada3a9f61940824e348cb5f25e901911 Mon Sep 17 00:00:00 2001 From: Devan Franchini Date: Tue, 14 Oct 2014 15:26:36 -0400 Subject: config.py: Adds more thorough checking for setting self.work --- WebappConfig/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebappConfig/config.py b/WebappConfig/config.py index acf7b7a..99ccedd 100644 --- a/WebappConfig/config.py +++ b/WebappConfig/config.py @@ -582,7 +582,7 @@ class Config: info_opts.add_argument('-li', '--list-installs', - action='store_true', + nargs = 2, help = 'List all current virtual installs for . Use * for the package name and/or ' 'version number to list more than one package / ' @@ -966,7 +966,7 @@ class Config: sys.exit() for i in work: - if options.get(i): + if options.get(i) != None and options.get(i) != False: self.work = i break -- cgit v1.2.3-65-gdbad