1
0
forked from VimPlug/jedi

Better search for venvs

This commit is contained in:
Dave Halter
2022-11-21 23:06:26 +01:00
parent 0a670d10dd
commit 41455480be

View File

@@ -352,9 +352,8 @@ class Project:
# 3. Search for modules on sys.path
sys_path = [
p for p in self._get_sys_path(inference_state)
# Exclude folders that are handled by recursing of the Python
# folders.
if not p.startswith(str(self._path))
# Exclude the current folder which is handled by recursing the folders.
if p != self._path
]
names = list(iter_module_names(inference_state, empty_module_context, sys_path))
yield from search_in_module(