Fix command line arg
This commit is contained in:
parent
78d2e22e58
commit
cb966f2cc6
1 changed files with 3 additions and 2 deletions
|
@ -59,6 +59,7 @@ if __name__ == "__main__":
|
|||
enable_opts = ['True', 'true', 'yes']
|
||||
debug_opts = ['debug', 'Debug', 'DEBUG']
|
||||
|
||||
if not opts.debug:
|
||||
opts.debug = True if any([os.getenv(string, False) for true in enable_opts
|
||||
for string in debug_opts if os.getenv(string, False) == true]) else False
|
||||
|
||||
|
|
Loading…
Reference in a new issue