how to prevent python import from looking into the current directory

Carl Banks pavlovevidence at gmail.com
Sat Mar 7 00:34:44 EST 2009


On Mar 6, 1:54 am, Ben Finney <bignose+hates-s... at benfinney.id.au>
wrote:
> (Could you please set a valid email address for people to contact you
> if necessary?)
>
> TP <Tribulati... at Paralleles.invalid> writes:
> > I would like to prevent the loading of modules in the current
> > directory.
>
> You will, I think, like the new distinction between “absolute” and
> “relative” imports <URL:http://www.python.org/dev/peps/pep-0328/>.

He might, but it won't help him with his problem.  Relative imports
aren't involved in this situation.


Carl Banks



More information about the Python-list mailing list