Skip to content

Commit 3a40255

Browse files
committed
reduce the diff
1 parent a3ef49c commit 3a40255

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ def ensure_venv_ready(venvroot=None, kind="dev", venvsdir=VENVS):
3939
isready = os.path.exists(readyfile)
4040
if not isready:
4141
relroot = os.path.relpath(venvroot)
42-
if os.path.exists(venvroot):
42+
if not os.path.exists(venvroot):
43+
print(f"creating uv env at {relroot}...")
44+
else:
4345
print(f"uv env {relroot} not ready, re-creating...")
4446
shutil.rmtree(venvroot)
45-
else:
46-
print(f"creating uv env at {relroot}...")
4747
ec, _, _ = run_uv(
4848
"venv",
4949
"--python",

0 commit comments

Comments
 (0)