[Python-projects] pylint external dependencies
Alexandre Fayolle
alexandre.fayolle at logilab.fr
Tue Feb 10 11:57:17 CET 2009
Le Tuesday 10 February 2009 11:11:47 Saegebrecht Martin, vous avez écrit :
> Hello!
> Lets say you have a directory with a lot of pythonfiles/modules (that you
> whant to run pylint on) and some of them are importing another python
> module which is located in another directory.
>
> How do you tell pylint to look for the specific external dependency model
> located in the other directory?
Normally this is done using the PYTHONPATH environment variable : pylint uses
the same semantics regarding module importation as Python (however dynamic
imports are not processed, which means that if you use execfile() or
__import__(), pylint can't process this).
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20090210/15bedb17/attachment-0001.pgp>
More information about the Python-Projects
mailing list