Browse Source

Adding ability to override executable target

wxpy3
Luke Zulauf 7 years ago
committed by Chris
parent
commit
e3a2e87c01
2 changed files with 7 additions and 4 deletions
  1. 10
      gooey/python_bindings/config_generator.py
  2. 1
      gooey/python_bindings/gooey_decorator.py

10
gooey/python_bindings/config_generator.py

@ -8,10 +8,12 @@ from gooey.gui.util.quoting import quote
def create_from_parser(parser, source_path, **kwargs):
auto_start = kwargs.get('auto_start', False)
if hasattr(sys, 'frozen'):
run_cmd = quote(source_path)
else:
run_cmd = '{} -u {}'.format(quote(sys.executable), quote(source_path))
run_cmd = kwargs.get('target')
if run_cmd is None:
if hasattr(sys, 'frozen'):
run_cmd = quote(source_path)
else:
run_cmd = '{} -u {}'.format(quote(sys.executable), quote(source_path))
build_spec = {
'language': kwargs.get('language', 'english'),

1
gooey/python_bindings/gooey_decorator.py

@ -21,6 +21,7 @@ def Gooey(f=None,
advanced=True,
language='english',
auto_start=False, # TODO: add this to the docs. Used to be `show_config=True`
target=None,
program_name=None,
program_description=None,
default_size=(610, 530),

Loading…
Cancel
Save