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: