diff --git a/gooey/python_bindings/config_generator.py b/gooey/python_bindings/config_generator.py index a4d9e7a..cb9cf2d 100644 --- a/gooey/python_bindings/config_generator.py +++ b/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'),