Skip to content

Commit

Permalink
Fix Pycharm Plugin Windows/Linux interoperability
Browse files Browse the repository at this point in the history
  • Loading branch information
allegroai committed May 17, 2024
1 parent c9cbe1c commit 883b73c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions clearml/backend_interface/task/repo/scriptinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 883b73c

Please sign in to comment.