fix: don't make extra directory in ephemeral directory

This commit is contained in:
Daylin Morgan 2023-10-23 12:53:12 -05:00
parent 873310d900
commit 153d9fe774
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -1725,9 +1725,7 @@ class Viv:
if run_mode == "ephemeral":
new_cache = tmpdir
elif run_mode == "semi-ephemeral":
new_cache = str(
Path(tempfile.gettempdir()) / "viv-ephemeral-cache" / "venvs"
)
new_cache = str(Path(tempfile.gettempdir()) / "viv-ephemeral-cache")
env.update({"VIV_CACHE": new_cache})
os.environ["VIV_CACHE"] = new_cache