Skip to content

Commit

Permalink
Adding ability to override executable target
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Zulauf authored and chriskiehl committed Aug 13, 2017
1 parent 3c5a413 commit e3a2e87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gooey/python_bindings/config_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
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'),
Expand Down
1 change: 1 addition & 0 deletions gooey/python_bindings/gooey_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit e3a2e87

Please sign in to comment.