From 14ac2b7c49648d17d7d06e28970a280619015e8b Mon Sep 17 00:00:00 2001 From: Noah Kritz Date: Wed, 6 Jul 2022 02:30:58 -0400 Subject: Removed -v; now autodetects an active venv --- scripts/install_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/install_api.py b/scripts/install_api.py index efa07566..e19c060c 100755 --- a/scripts/install_api.py +++ b/scripts/install_api.py @@ -25,8 +25,9 @@ INTERACTIVE = True if '-s' in sys.argv[1:]: INTERACTIVE = False +# Autodetect venv INSTALL_VENV = False -if '-v' in sys.argv[1:]: +if sys.prefix == sys.base_prefix: if os.environ.get('VIRTUAL_ENV'): INSTALL_VENV = True else: -- cgit v1.3.1