We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3df248 commit 2e1e185Copy full SHA for 2e1e185
astroid/modutils.py
@@ -278,7 +278,7 @@ def modpath_from_file_with_callback(
278
filename = os.path.expanduser(_path_from_filename(filename))
279
paths_to_check = sys.path.copy()
280
if path:
281
- paths_to_check += path
+ paths_to_check = path + paths_to_check
282
for pathname in itertools.chain(
283
paths_to_check, map(_cache_normalize_path, paths_to_check)
284
):
0 commit comments