diff options
| author | d0now <dolpin1402@gmail.com> | 2022-07-13 02:12:20 +0900 |
|---|---|---|
| committer | Josh F <negasora@users.noreply.github.com> | 2022-07-18 14:42:01 -0400 |
| commit | 1b5e7f7bb4876694aed7f21bb620db926f5f91aa (patch) | |
| tree | b18ede80eaba656a8ffb0ec92172dbbbbb7c6858 | |
| parent | dd790f31c400f42ebf0abbbdec8305f7d413818e (diff) | |
Fix prefix comparison logic for virtual environment detection
| -rwxr-xr-x | scripts/install_api.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install_api.py b/scripts/install_api.py index bc66badf..99f4db90 100755 --- a/scripts/install_api.py +++ b/scripts/install_api.py @@ -27,7 +27,7 @@ if '-s' in sys.argv[1:]: # Autodetect venv INSTALL_VENV = False -if sys.prefix == sys.base_prefix: +if sys.prefix != sys.base_prefix: if os.environ.get('VIRTUAL_ENV'): INSTALL_VENV = True |
