Skip to content

Commit

Permalink
Change order of search path
Browse files Browse the repository at this point in the history
  • Loading branch information
akamat10 committed Sep 30, 2024
1 parent 62c5bad commit 0a8ebeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroid/modutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def modpath_from_file_with_callback(
filename = os.path.expanduser(_path_from_filename(filename))
paths_to_check = sys.path.copy()
if path:
paths_to_check += path
paths_to_check = path + paths_to_check
for pathname in itertools.chain(
paths_to_check, map(_cache_normalize_path, paths_to_check)
):
Expand Down

0 comments on commit 0a8ebeb

Please sign in to comment.