Load stub modules if it's a stub

This commit is contained in:
Dave Halter
2020-03-08 11:51:39 +01:00
parent 58998748e3
commit a5f7412296
5 changed files with 25 additions and 7 deletions

View File

@@ -207,7 +207,7 @@ def _get_buildout_script_paths(search_path):
def remove_python_path_suffix(path):
for suffix in all_suffixes():
for suffix in all_suffixes() + ['.pyi']:
if path.endswith(suffix):
path = path[:-len(suffix)]
break