File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 10
10
import socket
11
11
from datetime import datetime
12
12
from collections import OrderedDict
13
+ import os
13
14
14
15
# pylint: disable=wrong-import-position, import-error
15
16
sys .path .insert (0 , str (Path (__file__ ).resolve ().parent / "python_libs" ))
@@ -186,8 +187,8 @@ def vtr_command_argparser(prog=None):
186
187
187
188
house_keeping .add_argument (
188
189
"-temp_dir" ,
189
- default = None ,
190
- help = "Directory to run the flow in (will be created if non-existent)." ,
190
+ default = os . getcwd () + "/temp" ,
191
+ help = "Absolute Directory to run the flow in (will be created if non-existent)." ,
191
192
)
192
193
193
194
house_keeping .add_argument ("-name" , default = None , help = "Name for this run to be output." )
@@ -521,10 +522,9 @@ def vtr_command_main(arg_list, prog=None):
521
522
# Load the arguments
522
523
args , unknown_args = vtr_command_argparser (prog ).parse_known_args (arg_list )
523
524
error_status = "Error"
524
- if args .temp_dir is None :
525
- temp_dir = Path ("./temp" )
526
- else :
527
- temp_dir = Path (args .temp_dir )
525
+
526
+ assert args .temp_dir
527
+ temp_dir = Path (args .temp_dir )
528
528
# Specify how command should be run
529
529
command_runner = vtr .CommandRunner (
530
530
track_memory = args .track_memory_usage ,
You can’t perform that action at this time.
0 commit comments