diff options
author | hippo91 <guillaume.peillex@gmail.com> | 2020-12-28 15:22:08 +0100 |
---|---|---|
committer | hippo91 <guillaume.peillex@gmail.com> | 2020-12-28 15:22:08 +0100 |
commit | d75cb3c751758a0b205efaa07545f714567d4c83 (patch) | |
tree | 4076e8e7eac6ce001ee17be2ff343b89f574b20f | |
parent | e42e5f6dec08214ff15888dffa8ff954fbaf85a5 (diff) | |
download | astroid-git-d75cb3c751758a0b205efaa07545f714567d4c83.tar.gz |
Seems like the only way to have a valid get_python_lib(standard_lib=True) with pypy is to specifiy the prefix = sys.base_prefix
-rw-r--r-- | astroid/modutils.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index 746bedc7..87d58b4f 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -90,6 +90,7 @@ if os.name == "nt": pass if platform.python_implementation() == "PyPy": + STD_LIB_DIRS.add(get_python_lib(standard_lib=True, prefix=sys.base_prefix)) _root = os.path.join(sys.prefix, "lib_pypy") STD_LIB_DIRS.add(_root) try: |