Browse Source

Merge pull request #97 from 8BitAce/master

Don't pass frozen programs to python.
pull/486/head
Chris 9 years ago
parent
commit
43cdbf8dac
1 changed files with 5 additions and 1 deletions
  1. 6
      gooey/python_bindings/config_generator.py

6
gooey/python_bindings/config_generator.py

@ -8,7 +8,11 @@ from gooey.python_bindings import source_parser
def create_from_parser(parser, source_path, **kwargs):
show_config = kwargs.get('show_config', False)
run_cmd = 'python {}'.format(source_path)
#If script has been frozen execute it straight
if hasattr(sys, 'frozen'):
run_cmd = source_path
else:
run_cmd = 'python {}'.format(source_path)
build_spec = {
'language': kwargs.get('language', 'english'),

Loading…
Cancel
Save