Skip to content

Commit

Permalink
do not delete the output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
gshiroma committed Apr 3, 2024
1 parent f92a38b commit f501557
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/rtc/rtc_s1.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,12 +620,6 @@ def run_parallel(cfg: RunConfig, logfile_path, flag_logger_full_format):
f'"{burst_runconfig_list[index_child]}" for burst ID '
f'"{burst_id}"\n')

# if output directory is empty, delete it
if (os.path.isdir(output_dir) and
len(os.listdir(output_dir)) == 0):
logger.info(f'Removing output directory: {output_dir}')
os.rmdir(output_dir)

raise RuntimeError(msg_failed_child_proc)

lookside = None
Expand Down

0 comments on commit f501557

Please sign in to comment.