Skip to content

Commit dee6091

Browse files
committed
Change the path for lock files
1 parent 3b5defa commit dee6091

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ Backward incompatible (breaking) changes will only be introduced in major versio
1313

1414
.. towncrier release notes start
1515
16+
0.20.5 (2024-02-29)
17+
===================
18+
19+
Change the path for lock files
20+
1621
0.20.4 (2024-02-29)
1722
===================
1823

src/ptscripts/virtualenv.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ def __default_requirements_hash(self) -> str:
7070
@lockfile.default
7171
def __lockfile(self) -> FileLock:
7272
# Late import to avoid circular import errors
73-
from ptscripts.__main__ import CWD
73+
from ptscripts.__main__ import TOOLS_VENVS_PATH
7474

7575
return FileLock(
76-
CWD / f".venv-{self.config.name}.lock", timeout=self.config.lock_timeout_seconds
76+
TOOLS_VENVS_PATH / "locks" / f"{self.config.name}.lock",
77+
timeout=self.config.lock_timeout_seconds,
7778
)
7879

7980
def _install_requirements(self) -> None:

0 commit comments

Comments
 (0)