diff options
| author | 3pidemix <3pidemix@gmail.com> | 2020-03-30 15:51:56 -0400 |
|---|---|---|
| committer | Jordan <jordan@psifertex.com> | 2020-03-30 15:52:46 -0400 |
| commit | cf4ec0ebf71dc74c67403c1303060eaf30ee851f (patch) | |
| tree | 527265de8a37fed3563c9a75a766b62b3db1ef51 /scripts | |
| parent | e50ff6445f6a915ed868b40511df1ee7e125a4bb (diff) | |
Added warning message
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/install_api.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/install_api.py b/scripts/install_api.py index 438dc9a8..84c5e6de 100644 --- a/scripts/install_api.py +++ b/scripts/install_api.py @@ -81,6 +81,8 @@ if ( len(sys.argv) > 1 and sys.argv[1].lower() == "root" ): print("Root install specified but cannot write to {}".format(install_path)) sys.exit(1) elif os.environ.get('VIRTUAL_ENV'): + print("Virtual environment detected - installing API in virtual environment.\n\ + Deactivate environment and re-run this script to perform normal installation.") install_path = getsitepackages()[0] else: if check_enableusersite(): |
