Skip to content

Commit 4ee9c74

Browse files
authored
Fix environment check (#52)
1 parent 89f9f76 commit 4ee9c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tox_uv/_venv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def env_site_package_dir(self) -> Path:
167167

168168
@cached_property
169169
def _py_info(self) -> PythonInfo: # pragma: win32 no cover
170-
if not (self._created or self.env_dir.exists()): # called during config, no environment setup
170+
if not self._created and not self.env_python().exists(): # called during config, no environment setup
171171
self.create_python_env()
172172
self._paths = self.prepend_env_var_path()
173173
with as_file(files("tox_uv") / "_venv_query.py") as filename:

0 commit comments

Comments
 (0)