summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2020-12-28 15:20:01 +0100
committerhippo91 <guillaume.peillex@gmail.com>2020-12-28 15:20:01 +0100
commite42e5f6dec08214ff15888dffa8ff954fbaf85a5 (patch)
tree3c77b8f3836d3163cc4f1439faeacce7207d0698 /astroid/modutils.py
parent321e950a1a51580737457dbcbdfef3e754c12a4b (diff)
downloadastroid-git-e42e5f6dec08214ff15888dffa8ff954fbaf85a5.tar.gz
sys.real_prefix doesn't exist anymore with recent version of venv. Use base_prefix instead
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r--astroid/modutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py
index f3852566..746bedc7 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -94,7 +94,7 @@ if platform.python_implementation() == "PyPy":
STD_LIB_DIRS.add(_root)
try:
# real_prefix is defined when running inside virtualenv.
- STD_LIB_DIRS.add(os.path.join(sys.real_prefix, "lib_pypy"))
+ STD_LIB_DIRS.add(os.path.join(sys.base_prefix, "lib_pypy"))
except AttributeError:
pass
del _root