1
Vote

Detect correct lib paths from interpreter

description

PyPy 1.9 stores its libraries under lib-python\2.7 and lib_pypy rather than lib, and we don't pick that up when refreshing intellisense DB. Regular CPython supports multiple packages paths while we currently assume only "$(prefix)\lib\site-packages".

We should query the interpreter to find all relevant paths:
import sys
sys.path    # with empty PYTHONPATH

import site
site.getsitepackages()
site.getusersitepackages()

comments

Zooba wrote Aug 1, 2013 at 6:41 PM

Updated issue to reflect the broader problem of assuming library paths rather than querying for them.