Leaklens

pylint-dev__pylint-7277

`pylint` removes first item from `sys.path` when running from `runpy`.

Verdict: the fix is stated in the issue (Tier A).

I think there should be a check to ensure that the first item is `""`, `"."` or `os.getcwd()` before removing.

The text states the fix: “I think there should be a check to ensure that the first item is `""`, `"."` or `os.getcwd()` before removing.”

All SWE-bench Verified tasks · more pylint-dev/pylint tasks · How the check works