From 58727f494f9b6fbb842ce62c0c91d62ea8777846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Thu, 18 Jan 2024 15:41:04 +0100 Subject: [PATCH] Fix post_cosmo --- jobs/post_cosmo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jobs/post_cosmo.py b/jobs/post_cosmo.py index cde9953e..e8f5a600 100644 --- a/jobs/post_cosmo.py +++ b/jobs/post_cosmo.py @@ -119,7 +119,7 @@ def main(cfg): # Wait for Cosmo to finish first tools.check_job_completion(cfg.log_finished_dir, "cosmo") - os.makedirs(cfg.cosmo_run) + os.makedirs(cfg.cosmo_run, exist_ok=True) script = (cfg.cosmo_run / 'run_post_cosmo.job') with open(script, "w") as outf: outf.write(runscript_content)