Browse Source

dump the build config file to the running python script directory

pull/473/head
Simon O'Dwyer 7 years ago
committed by Chris
parent
commit
3a8888bb0f
1 changed files with 1 additions and 1 deletions
  1. 2
      gooey/python_bindings/gooey_decorator.py

2
gooey/python_bindings/gooey_decorator.py

@ -73,7 +73,7 @@ def Gooey(f=None,
**params)
if dump_build_config:
config_path = os.path.join(os.getcwd(), 'gooey_config.json')
config_path = os.path.join(os.path.dirname(sys.argv[0]), 'gooey_config.json')
print('Writing Build Config to: {}'.format(config_path))
with open(config_path, 'w') as f:
f.write(json.dumps(build_spec, indent=2))

Loading…
Cancel
Save