From 23c6ec6643e4c85e936454fe21d84933f3903241 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 30 May 2022 19:47:16 +0300 Subject: [PATCH] Fix local task execution with empty working directory --- clearml/automation/job.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/automation/job.py b/clearml/automation/job.py index c5d2a8d4..bc4f3908 100644 --- a/clearml/automation/job.py +++ b/clearml/automation/job.py @@ -605,7 +605,7 @@ class LocalClearmlJob(ClearmlJob): else: local_filename = self.task.data.script.entry_point - cwd = os.path.join(os.getcwd(), self.task.data.script.working_dir) + cwd = os.path.join(os.getcwd(), self.task.data.script.working_dir or '') # try to check based on current root repo + entrypoint if Task.current_task() and not (Path(cwd)/local_filename).is_file(): working_dir = Task.current_task().data.script.working_dir or ''