Skip to content

Commit 0a8ebeb

Browse files
committed
Change order of search path
1 parent 62c5bad commit 0a8ebeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

astroid/modutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def modpath_from_file_with_callback(
278278
filename = os.path.expanduser(_path_from_filename(filename))
279279
paths_to_check = sys.path.copy()
280280
if path:
281-
paths_to_check += path
281+
paths_to_check = path + paths_to_check
282282
for pathname in itertools.chain(
283283
paths_to_check, map(_cache_normalize_path, paths_to_check)
284284
):

0 commit comments

Comments
 (0)