From 400dc5f458631477b40d5ce04aae2531adc9501f Mon Sep 17 00:00:00 2001 From: Keith Scheiwiller Date: Tue, 11 Aug 2015 20:36:20 -0500 Subject: [PATCH] Don't pass frozen programs to python. --- gooey/python_bindings/config_generator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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'),