Description
openedon Jul 18, 2023
Question
I've been using pylint.config.PYLINTRC
in the init-hook of the pylintrc to set up the PYTHONPATH.
init-hook="
import os, pathlib, pylint, sys
testDir = pathlib.Path(pylint.config.PYLINTRC).resolve().parent.joinpath("test")
sys.path.append(os.fspath(testDir))"
In pylint 3 this leads to an error
AttributeError: module 'pylint.config' has no attribute 'PYLINTRC'
This method was much more convenient and portable than setting the PYTHONPATH outside of pylint.
What is the preferred way to do this in pylint 3?
Documentation for future user
Documentation, release notes
Additional context
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment