summaryrefslogtreecommitdiff
path: root/astroid/objects.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2016-12-03 11:47:46 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2016-12-03 11:47:46 +0200
commit60743e7e19f319af951948a3fcc2804f980293d3 (patch)
tree82969f1275d42c8f3b8b4ff2044167678d757b4e /astroid/objects.py
parent84fc589494c8148bef2cee129e3356daa152e382 (diff)
downloadastroid-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