Skip to content

Commit bd0dfeb

Browse files
committed
Add & use temp_dir accessor
1 parent c4a2b3c commit bd0dfeb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tox/tox_env/api.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ def work_dir(self) -> Path:
199199
""":return: the tox work dir folder"""
200200
return cast(Path, self.core["work_dir"])
201201

202+
@property
203+
def temp_dir(self) -> Path:
204+
""":return: the tox work dir folder"""
205+
return cast(Path, self.core["temp_dir"])
206+
202207
@property
203208
def name(self) -> str:
204209
return cast(str, self.conf["env_name"])
@@ -319,7 +324,7 @@ def _handle_env_tmp_dir(self) -> None:
319324
env_tmp_dir.mkdir(parents=True, exist_ok=True)
320325

321326
def _handle_core_tmp_dir(self) -> None:
322-
self.core["temp_dir"].mkdir(parents=True, exist_ok=True)
327+
self.temp_dir.mkdir(parents=True, exist_ok=True)
323328

324329
def _clean(self, transitive: bool = False) -> None: # noqa: ARG002, FBT001, FBT002
325330
if self._run_state["clean"]: # pragma: no branch

0 commit comments

Comments
 (0)