diff options
| author | Noah Kritz <nkritz@redlattice.com> | 2022-07-06 02:30:58 -0400 |
|---|---|---|
| committer | Jordan <github@psifertex.com> | 2022-07-06 11:01:30 -0400 |
| commit | 14ac2b7c49648d17d7d06e28970a280619015e8b (patch) | |
| tree | 84a37c5c2f12924f3d27ca3ffdd96cd86842343f /scripts | |
| parent | 4a795afc2d72293583329c4c174fc0f091697b9c (diff) | |
Removed -v; now autodetects an active venv
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/install_api.py | 3 |
1 files changed, 2 insertions, 1 deletions
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: |
