Skip to content
Snippets Groups Projects
Commit 54081ed8 authored by Karl-Hermann Wieners's avatar Karl-Hermann Wieners
Browse files

Fixed scope error in getexp from the mkexp package.

parent 220f9975
No related branches found
No related tags found
No related merge requests found
......@@ -23,18 +23,17 @@ program = sys.argv.pop(0)
usage = 'Usage: ' + program + ' experiment_config_name [key=value...]'
if len(sys.argv) < 1:
feedback.die('invalid number of parameters\n' + usage)
die('invalid number of parameters\n' + usage)
experiment_config_name = sys.argv.pop(0)
if not os.path.exists(experiment_config_name):
feedback.die("config file '{0}' does not exist".format(experiment_config_name))
die("config file '{0}' does not exist".format(experiment_config_name))
invalid_args = filter(lambda x: not x.find('=')+1, sys.argv)
if invalid_args:
feedback.die("invalid parameters ('"+"', '".join(invalid_args)+"')\n" +
usage)
die("invalid parameters ('"+"', '".join(invalid_args)+"')\n" + usage)
# Read and store configuration info from input and experiments' library
# Store environment as default for control settings, then add config from files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment