Commit dfed7737 authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema

Fix parset concatenator

parent 38e8d33a
......@@ -19,10 +19,10 @@ def parse_arguments(args):
def main(args):
arguments = parse_arguments(args)
concatenate(arguments.input_parset,
arguments.step_name,
arguments.step_type,
arguments.step_arguments)
concatenate_file(arguments.input_parset,
arguments.step_name,
arguments.step_type,
arguments.step_arguments)
def concatenate(lines, step_name, step_type, step_args):
......@@ -65,10 +65,9 @@ def concatenate(lines, step_name, step_type, step_args):
def concatenate_file(parsetfile, step_name, step_type, args):
print(args)
if parsetfile and os.path.exists(parsetfile):
with open(parsetfile, "r") as f_stream:
concatenate(f_stream.read().splitlines(), step_name, step_type, args)
with open(parsetfile, "r") as f_stream:
concatenate(f_stream.read().splitlines(), step_name, step_type, args)
if __name__=='__main__':
......
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 to comment