From 5febbe0267956bd4c88041da99568a0a3f42b9ec Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 4 Aug 2023 10:38:09 -0500 Subject: [PATCH] fix: properly re-use environments --- src/viv/viv.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index 6e0969e..20788bb 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -52,7 +52,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.5a7-4-g7100243-dev" +__version__ = "23.5a7-5-g0411f81-dev" class Spinner: @@ -1528,12 +1528,11 @@ class Viv: else: vivenv.create() vivenv.install_pkgs() - vivenv.touch() - vivenv.meta.write() - vivenv.bin_exists(bin) - sys.exit( - subprocess.run([vivenv.path / "bin" / bin, *rest]).returncode - ) + + vivenv.touch() + vivenv.meta.write() + vivenv.bin_exists(bin) + sys.exit(subprocess.run([vivenv.path / "bin" / bin, *rest]).returncode) class Arg: