Question

I'm attempting to add modules to my Pylint path so they can be imported by using the solution as seen in this question. Unfortunately, the modules I expect should be available for import after using this solution still don't seem to be there. I want to check if the path's I'm trying to add to Pylint were actually added or not. Is there a simple way to print out the sys.path of Pylint? Thank you much!

Was it helpful?

Solution

Pylint should use PYTHONPATH in the same way as the Python interpreter. If not, it may be considered as a bug and reported as such.

You may want to try pylint --init-hook 'print(sys.path)' to run pylint while displaying its Python path at first.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top