Skip to content

Commit 53ea75b

Browse files
lcianadinauer
authored andcommitted
fix
1 parent 924a40c commit 53ea75b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

devenv/sync.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from devenv import constants
22
from devenv.lib import config, proc, uv
3+
import os
34

45
def main(context: dict[str, str]) -> int:
56
reporoot = context["reporoot"]
@@ -14,6 +15,8 @@ def main(context: dict[str, str]) -> int:
1415

1516
# reporoot/.venv is the default venv location
1617
print(f"syncing .venv ...")
18+
if not os.path.exists(".venv"):
19+
proc.run(("uv", "venv", "--seed"))
1720
proc.run(("uv", "sync", "--frozen", "--quiet"))
1821

1922
return 0

0 commit comments

Comments
 (0)