File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change 14
14
from pylint .config .arguments_manager import _ArgumentsManager
15
15
from pylint .config .arguments_provider import _ArgumentsProvider
16
16
from 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
18
18
from pylint .pyreverse import writer
19
19
from pylint .pyreverse .diadefslib import DiadefsHandler
20
20
from pylint .pyreverse .inspector import Linker , project_from_files
@@ -304,11 +304,7 @@ def run(self, args: list[str]) -> int:
304
304
extra_packages_paths = list (
305
305
{discover_package_path (arg , self .config .source_roots ) for arg in args }
306
306
)
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 ):
312
308
project = project_from_files (
313
309
args ,
314
310
project_name = self .config .project ,
You can’t perform that action at this time.
0 commit comments