Domanda

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!

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top