Skip to content

Commit 4f4d5ef

Browse files
committed
Fixed argument modification for run mode only
1 parent 003131e commit 4f4d5ef

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

structure_threader/argparser.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,12 @@ def argument_modifications(arguments):
297297
them.
298298
"""
299299
# Transform a single K value into a list
300-
if isinstance(arguments.k_list, int):
301-
arguments.k_list = range(1, arguments.k_list + 1)
300+
if arguments.main_op == "run":
301+
if isinstance(arguments.k_list, int):
302+
arguments.k_list = range(1, arguments.k_list + 1)
302303

303-
# Switch relative to absolute paths
304-
arguments.infile = os.path.abspath(arguments.infile)
305-
arguments.outpath = os.path.abspath(arguments.outpath)
304+
# Switch relative to absolute paths
305+
arguments.infile = os.path.abspath(arguments.infile)
306+
arguments.outpath = os.path.abspath(arguments.outpath)
306307

307308
return arguments

0 commit comments

Comments
 (0)