Fix Pycharm Plugin Windows/Linux interoperability

This commit is contained in:
allegroai 2024-05-17 23:10:31 +03:00
parent c9cbe1c903
commit 883b73ce30

View File

@ -980,6 +980,8 @@ class ScriptInfo(object):
@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)