Skip to content

Commit 60f77d2

Browse files
authored
BUG: Skip __editable__ paths during iter_modules (#408)
* Skip `__editable__` paths during `iter_modules` * Update pdoc/__init__.py
1 parent 2cce30a commit 60f77d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pdoc/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,9 @@ def iter_modules(paths):
727727
"""
728728
from os.path import isdir, join
729729
for pth in paths:
730+
if pth.startswith("__editable__."):
731+
# See https://github.com/pypa/pip/issues/11380
732+
continue
730733
for file in os.listdir(pth):
731734
if file.startswith(('.', '__pycache__', '__init__.py')):
732735
continue

0 commit comments

Comments
 (0)