質問

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!

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top