@@ -524,11 +524,9 @@ def vtr_command_main(arg_list, prog=None):
524
524
error_status = "Error"
525
525
526
526
assert args .temp_dir
527
-
528
527
temp_dir = Path (args .temp_dir )
529
528
if not str (temp_dir ).startswith ("/" ):
530
529
temp_dir = Path (os .getcwd () + "/" + args .temp_dir )
531
-
532
530
# Specify how command should be run
533
531
command_runner = vtr .CommandRunner (
534
532
track_memory = args .track_memory_usage ,
@@ -548,11 +546,11 @@ def vtr_command_main(arg_list, prog=None):
548
546
vpr_args = process_unknown_args (unknown_args )
549
547
vpr_args = process_vpr_args (args , prog , temp_dir , vpr_args )
550
548
if args .sdc_file :
551
- sdc_file_copy = get_sdc_file (args .sdc_file , prog , temp_dir )
549
+ sdc_file_copy = get_sdc_file (args .sdc_file , temp_dir )
552
550
vpr_args ["sdc_file" ] = Path (sdc_file_copy ).name
553
551
if args .read_vpr_constraints :
554
552
vpr_constraint_file_copy = get_read_vpr_constraints (
555
- args .read_vpr_constraints , prog , temp_dir
553
+ args .read_vpr_constraints , temp_dir
556
554
)
557
555
vpr_args ["read_vpr_constraints" ] = Path (vpr_constraint_file_copy ).name
558
556
@@ -767,7 +765,7 @@ def process_vpr_args(args, prog, temp_dir, vpr_args):
767
765
return vpr_args
768
766
769
767
770
- def get_sdc_file (sdc_file , prog , temp_dir ):
768
+ def get_sdc_file (sdc_file , temp_dir ):
771
769
"""
772
770
takes in the sdc_file and returns a path to that file if it exists.
773
771
"""
@@ -779,7 +777,7 @@ def get_sdc_file(sdc_file, prog, temp_dir):
779
777
return str (vtr .verify_file (sdc_file_copy , "sdc file" ))
780
778
781
779
782
- def get_read_vpr_constraints (read_vpr_constraints , prog , temp_dir ):
780
+ def get_read_vpr_constraints (read_vpr_constraints , temp_dir ):
783
781
"""
784
782
takes in the read_vpr_constraints and returns a path to that file if it exists.
785
783
"""
0 commit comments