[Python-projects] PyLint: Bogus message "Unable to import"
Markus Meyer
meyer at mesw.de
Wed Jul 5 10:41:33 CEST 2006
Alexandre,
Alexandre Fayolle schrieb:
> It is not a bug, it is a feature. Pylint does not take into account
> changes to sys.path. Change your PYTHONPATH environment variable before
> launching pylint, so that it is able to find the modules you import.
>
But it does take changes to sys.path into account when the form "import
mylib" is used. It's only "from mylib import somemodule" that does not
work. At best this is inconsistent behaviour.
Markus
More information about the Python-Projects
mailing list