diff --git a/clearml/backend_interface/task/repo/scriptinfo.py b/clearml/backend_interface/task/repo/scriptinfo.py index 5ad957b8..20b47e78 100644 --- a/clearml/backend_interface/task/repo/scriptinfo.py +++ b/clearml/backend_interface/task/repo/scriptinfo.py @@ -980,6 +980,8 @@ def _cwd(cls): @classmethod def _get_working_dir(cls, repo_root, return_abs=False): if VCS_WORK_DIR.get(): + if return_abs and repo_root: + return (Path(repo_root) / VCS_WORK_DIR.get()).absolute().as_posix() return VCS_WORK_DIR.get() # get the repository working directory (might be different from actual cwd)