From 4fbf2a0756d2a67c68dfaa7ffb8b758605296412 Mon Sep 17 00:00:00 2001 From: Tobias Langer Date: Sat, 8 Oct 2016 22:45:22 +0200 Subject: [PATCH] Usability. --- tasksetgen.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tasksetgen.py b/tasksetgen.py index df48440..6686ae1 100755 --- a/tasksetgen.py +++ b/tasksetgen.py @@ -87,6 +87,8 @@ def main(): 'should be generated.') parser.add_argument('target', type=str, help='Output directory.', nargs='?', default='.') + parser.add_argument('experiment_target', type=str, help='Output directory for experiments.', nargs='?', + default='.') parser.add_argument('--baseclock', type=str, default='system_clock', nargs='?', help='The clock which is to be used for the execution.') @@ -200,6 +202,10 @@ def main(): 'elem' : task_out } ] + try: + out['output'] = args.experiment_target + except KeyError: + pass outname = os.path.join(args.target, name + '.json') with open(outname, 'w') as outfile: -- libgit2 0.26.0