Closed jgosmann closed 8 years ago
By "better way", are you talking about the use case where the person is creating the network in the GUI and doesn't want to drop down to the command line to actually run their script? What about including an args.txt
file? We could also include this somewhat advanced option in the GUI as well?
I was talking about the actual implementation by writing a string of Python code executing that first and than the actual script. Also that code appears twice which violates the DRY principle.
As nengo_gui_2014 is deprecated and this PR is noise in my PR list, I am closing it.
This PR allows to specifiy arguments to the script on the command line (in addition to the filename).
It is based on the
argparse
branch.This PR might not be the final implementation, but merely the basis for discussion. Probably the arguments should be reset if another file is loaded. Maybe there are better ways to actually pass the arguments into the code.