File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 1414from pylint .config .arguments_manager import _ArgumentsManager
1515from pylint .config .arguments_provider import _ArgumentsProvider
1616from pylint .lint import discover_package_path
17- from pylint .lint .utils import augmented_sys_path , realpath_transformer
17+ from pylint .lint .utils import augmented_sys_path
1818from pylint .pyreverse import writer
1919from pylint .pyreverse .diadefslib import DiadefsHandler
2020from pylint .pyreverse .inspector import Linker , project_from_files
@@ -304,11 +304,7 @@ def run(self, args: list[str]) -> int:
304304 extra_packages_paths = list (
305305 {discover_package_path (arg , self .config .source_roots ) for arg in args }
306306 )
307- # Prefer package paths detected per module over global PYTHONPATH additions
308- extra_sys_paths = extra_packages_paths + realpath_transformer (
309- self .config .pythonpath
310- )
311- with augmented_sys_path (extra_sys_paths ):
307+ with augmented_sys_path (extra_packages_paths ):
312308 project = project_from_files (
313309 args ,
314310 project_name = self .config .project ,
You can’t perform that action at this time.
0 commit comments