diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2016-12-03 11:47:46 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2016-12-03 11:47:46 +0200 |
commit | 60743e7e19f319af951948a3fcc2804f980293d3 (patch) | |
tree | 82969f1275d42c8f3b8b4ff2044167678d757b4e /astroid/objects.py | |
parent | 84fc589494c8148bef2cee129e3356daa152e382 (diff) | |
download | astroid-git-60743e7e19f319af951948a3fcc2804f980293d3.tar.gz |
Use sys.base_exec_prefix in case sys.real_prefix is not defined
sys.real_prefix is an addition of the *virtualenv* library, but it
is not added when a virtual environment is created with the builtin
*venv* library. In the latter's case, sys.base_exec_prefix is the
one pointing to the original installation of Python. Now, in case
sys.real_prefix is not defined, we fallback to sys.base_exec_prefix.
Diffstat (limited to 'astroid/objects.py')
0 files changed, 0 insertions, 0 deletions