Browse Source

fix: argparse not detected in source if optional arguments were supplied (eg: custom argv)

Signed-off-by: Stephen L. <lrq3000@gmail.com>
pull/90/merge
Stephen L 9 years ago
committed by chriskiehl
parent
commit
01f649f8dd
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/python_bindings/gooey_decorator.py

2
gooey/python_bindings/gooey_decorator.py

@ -141,7 +141,7 @@ def get_caller_path():
return tmp_sys.argv[0]
def has_argparse(source):
bla = ['.parse_args()' in line.lower() for line in source.split('\n')]
bla = ['.parse_args(' in line.lower() for line in source.split('\n')]
return any(bla)
def cleanup(descriptor, filepath):

Loading…
Cancel
Save