[Thomas Viehmann, 2009-07-08]
> Fabrice Silva wrote:
>> I will try tonight at home. Which are the mechanism that add items to
>> sys.path ?
> sys.path is a regular python list, so sys.path.append("/foo") adds to the 
> end, sys.path.insert(i, "/foo") adds "/foo" in i-th position (put in your 
> favorite integer).

... or you can have PYTHONPATH env. var. set somewhere (f.e. in ~/.bashrc)

you can also grep your code (I assume nobody would do such nasty thing
in Debian package ;) for "siteaddsitedir\(" or "import site"



_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to