Can I import from a directory that starts with a dot (.) ?

Terry Reedy tjreedy at udel.edu
Tue Apr 14 04:49:00 CEST 2009


Matthew Wilson wrote:
> I want to have .foo directory that contains some python code.  I can't
> figure out how to import code from that .foo directory.  Is this even
> possible?

Did you try putting '.foo' on sys.path?




More information about the Python-list mailing list