Skip to content

Commit

Permalink
Merge pull request #1017 from AngelFP/workflow_parent_dirs
Browse files Browse the repository at this point in the history
Create parent directories of `workflow_dir`
  • Loading branch information
jlnav committed Jun 12, 2023
2 parents 1321c72 + 926a35b commit cb44513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libensemble/comms/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_directory(self, dirname: str) -> None:
"""Sets target directory to contain logfiles if loggers not yet created"""
dirname = Path(dirname)
if not dirname.exists():
dirname.mkdir()
dirname.mkdir(parents=True)
if self.logger_set:
logger = logging.getLogger(self.name)
logger.warning("Cannot set directory after loggers initialized")
Expand Down

0 comments on commit cb44513

Please sign in to comment.