how can I import a module without using pythonpath?

Phd pyjunk at
Tue Dec 14 00:35:16 EST 2004


I'm using python 2.2, I want to import a module by referring to its 
relative location. The reason for this is that there is another module 
with the same name that's already in pythonpath( not my decision, but I 
got to work around it, bummer). So is there any easy way to do it?

something like
import module "from this location"


More information about the Python-list mailing list