@@ -481,9 +481,18 @@ def create_launch_folder(
481481 if self .out_log_file is None :
482482 self .out_log_file = os .path .abspath (os .path .join (folder_name , "out.log" ))
483483 should_make_folder = True
484+ else :
485+ if not os .path .isabs (self .out_log_file ):
486+ log_file = os .path .abspath (os .path .join (folder_name , self .out_log_file ))
487+ self .out_log_file = log_file
488+
484489 if self .err_log_file is None :
485490 self .err_log_file = os .path .abspath (os .path .join (folder_name , "err.log" ))
486491 should_make_folder = True
492+ else :
493+ if not os .path .isabs (self .err_log_file ):
494+ log_file = os .path .abspath (os .path .join (folder_name , self .err_log_file ))
495+ self .err_log_file = log_file
487496
488497 stub_file = ""
489498 if should_make_folder :
@@ -560,8 +569,8 @@ def launch(
560569 logger .info (f'Launching { " " .join (full_cmdline )} ' )
561570
562571 if blocking : # Launch job and trace outputs live
563- with open (os . path . join ( folder_name , "out.log" ) , "wb" ) as out_file :
564- with open (os . path . join ( folder_name , "err.log" ) , "wb" ) as err_file :
572+ with open (self . out_log_file , "wb" ) as out_file :
573+ with open (self . err_log_file , "wb" ) as err_file :
565574
566575 run_process_with_live_output (
567576 full_cmdline ,
0 commit comments