From 4f7407084d1900a79d455570c573e60f40208742 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Wed, 12 May 2021 15:46:25 +0300 Subject: [PATCH] Fix standalone script with pre-exiting conda venv --- clearml_agent/commands/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml_agent/commands/worker.py b/clearml_agent/commands/worker.py index 3de4fb0..55db405 100644 --- a/clearml_agent/commands/worker.py +++ b/clearml_agent/commands/worker.py @@ -187,7 +187,7 @@ class LiteralScriptManager(object): location = location or (repo_info and repo_info.root) if not location: location = Path(self.venv_folder, "code") - location.mkdir(exist_ok=True) + location.mkdir(exist_ok=True, parents=True) log.debug("selected execution directory: %s", location) return Text(location), self.write(task, location, execution.entry_point)