File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
vtr_flow/scripts/python_libs/vtr Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -540,12 +540,11 @@ def get_latest_run_dir(base_dir):
540
540
"""
541
541
latest_run_dir_name = get_latest_run_dir_name (base_dir )
542
542
543
- if latest_run_dir_name is None :
543
+ if latest_run_dir_name :
544
+ return str (PurePath (base_dir ) / latest_run_dir_name )
545
+ else :
544
546
return None
545
547
546
- return str (PurePath (base_dir ) / latest_run_dir_name )
547
-
548
-
549
548
def get_existing_run_dir (base_dir : str , run_dir : str ) -> str :
550
549
"""
551
550
Get an existing run directory (from a previous run). Throw if it doesn't exist
@@ -585,7 +584,7 @@ def get_latest_run_dir_name(base_dir):
585
584
586
585
if not run_dir .exists ():
587
586
# No existing run directories
588
- return None
587
+ return ""
589
588
590
589
while run_dir .exists ():
591
590
run_number += 1
You can’t perform that action at this time.
0 commit comments