From 153d9fe774f1e90aafaf8337d87a73f876a549d5 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 23 Oct 2023 12:53:12 -0500 Subject: [PATCH] fix: don't make extra directory in ephemeral directory --- src/viv/viv.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index a68093e..3b9e087 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -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