Skip to content

Commit

Permalink
fix conflict between logging and output dir removal
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan.schirmeister committed Sep 19, 2024
1 parent 65920b2 commit c6f3582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simba/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@
logging.error(e)
raise
finally:
logging.shutdown()
if args.zip_output and args.output_directory is not None and args.output_directory.exists():
# compress output directory after simulation
# generate <output_directory_name>.zip at location of original output directory
shutil.make_archive(args.output_directory, 'zip', args.output_directory)
# remove original output directory
shutil.rmtree(args.output_directory)
logging.shutdown()

0 comments on commit c6f3582

Please sign in to comment.