[Python-projects] Pylint: bugreport: unhandled ImportError
Sylvain Thénault
sylvain.thenault at logilab.fr
Tue Jul 25 14:08:11 CEST 2006
On Tuesday 25 July à 01:40, Micha? Kwiatkowski wrote:
> Hi,
Hi,
> Consider this simple directory structure:
>
> $ find
> .
> ./foo
> ./foo/bar
> ./foo/bar/module.py
> ./foo/bar/__init__.py
>
> Both __init__.py and module.py can be empty files. Now, when executing
> pylint like in example below causes an unhandled ImportError and
> scoring of a package is terminated:
yep, that's because the analyzed module or package have to be in the PYTHONPATH anyway. For your
example, cd in "foo" and "pylint bar" or add "foo" to the PYTHONPATH environment variable.
--
Sylvain Thénault LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Python et calcul scientifique: http://www.logilab.fr/science
More information about the Python-Projects
mailing list