Skip to content

Commit

Permalink
Added forced exit on load_build_config exception
Browse files Browse the repository at this point in the history
Added load_build_config & monospace_display to README.md
  • Loading branch information
Joaquin Santos authored and chriskiehl committed Oct 10, 2015
1 parent ac71408 commit 837f871
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ Different styling and functionality can be configured by passing arguments into
default_size=(610, 530), # starting size of the GUI
required_cols=1, # number of columns in the "Required" section
optional_cols=2, # number of columbs in the "Optional" section
dump_build_config=False) # Dump the JSON Gooey uses to configure itself
dump_build_config=False, # Dump the JSON Gooey uses to configure itself
load_build_config=None, # Loads a JSON Gooey-generated configuration
monospace_display=False) # Uses a mono-spaced font in the output screen
)
def main():
parser = ArgumentParser(...)
Expand Down Expand Up @@ -249,6 +251,8 @@ Just about everything in Gooey can be customized by passing arguments to the dec
| required_cols | Controls how many columns are in the Required Arguments section |
| optional_cols | Controls how many columns are in the Optional Arguments section |
| dump_build_config | Saves a `json` copy of its build configuration on disk for reuse/editing |
| load_build_config | Loads a `json` copy of its build configuration from disk |
| monospace_display | Uses a mono-spaced font in the output screen |



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 @@ -51,6 +51,7 @@ def run_gooey(self, args=None, namespace=None):
build_spec = json.load(open(load_build_config, "r"))
except Exception, e:
print( 'Exception loading Build Config from {0}: {1}'.format(load_build_config, e))
sys.exit(1)

if not build_spec:
build_spec = config_generator.create_from_parser(self, source_path, payload_name=payload.__name__, **params)
Expand Down

0 comments on commit 837f871

Please # to comment.