Commit 750307fc by Tobias Langer

More usability.

parent f018b8b5
...@@ -115,12 +115,17 @@ def main(): ...@@ -115,12 +115,17 @@ def main():
makefile = os.path.join(template_path, 'Makefile') makefile = os.path.join(template_path, 'Makefile')
cpp = os.path.join(template_path, 'experiment.cpp') cpp = os.path.join(template_path, 'experiment.cpp')
try:
output_path = experiment['output']
except KeyError:
output_path = cwd
print('[{}/{}] Creating experiment {}:'.format(num + 1, print('[{}/{}] Creating experiment {}:'.format(num + 1,
len(args.description), len(args.description),
experiment['name']), experiment['name']),
file=sys.stderr) file=sys.stderr)
experiment_dir = os.path.join(cwd, experiment['name']) experiment_dir = os.path.join(output_path, experiment['name'])
# Create folder # Create folder
print('Create folder…', experiment_dir, file=sys.stderr) print('Create folder…', experiment_dir, file=sys.stderr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment