Skip to content

Commit

Permalink
Fix finding packages without an __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielNoord committed Jan 8, 2022
1 parent d2a5b3c commit efdf987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions astroid/modutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def modpath_from_file_with_callback(filename, path=None, is_package_cb=None):
for pathname in itertools.chain(
path or [], map(_cache_normalize_path, sys.path), sys.path
):
pathname = _cache_normalize_path(pathname)
if not pathname:
continue
modpath = _get_relative_base_path(filename, pathname)
Expand Down

0 comments on commit efdf987

Please sign in to comment.