Skip to content

Commit

Permalink
revert changes to pyreverse
Browse files Browse the repository at this point in the history
  • Loading branch information
gremat committed Jun 10, 2024
1 parent 451b675 commit a3162e1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pylint/pyreverse/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from pylint.config.arguments_manager import _ArgumentsManager
from pylint.config.arguments_provider import _ArgumentsProvider
from pylint.lint import discover_package_path
from pylint.lint.utils import augmented_sys_path, realpath_transformer
from pylint.lint.utils import augmented_sys_path
from pylint.pyreverse import writer
from pylint.pyreverse.diadefslib import DiadefsHandler
from pylint.pyreverse.inspector import Linker, project_from_files
Expand Down Expand Up @@ -304,11 +304,7 @@ def run(self, args: list[str]) -> int:
extra_packages_paths = list(
{discover_package_path(arg, self.config.source_roots) for arg in args}
)
# Prefer package paths detected per module over global PYTHONPATH additions
extra_sys_paths = extra_packages_paths + realpath_transformer(
self.config.pythonpath
)
with augmented_sys_path(extra_sys_paths):
with augmented_sys_path(extra_packages_paths):
project = project_from_files(
args,
project_name=self.config.project,
Expand Down

0 comments on commit a3162e1

Please sign in to comment.