[Python-Dev] Re: .pth files in current or script directory (original) (raw)

Greg Ewing greg at cosc.canterbury.ac.nz
Mon May 17 22:28:47 EDT 2004


Richard Cooper <anon at server15.ukservers.net>:

When a module is imported, its import search path includes everything it does now PLUS the directory that is the top of the module's enclosing package structure.

I don't see how that changes anything, since in order to get imported in the first place, the module's top-level package has to already be on the module search path somehow.

Greg Ewing, Computer Science Dept, +--------------------------------------+ University of Canterbury, | A citizen of NewZealandCorp, a | Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. | greg at cosc.canterbury.ac.nz +--------------------------------------+



More information about the Python-Dev mailing list