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

Terry Reedy tjreedy at udel.edu
Mon Apr 13 22:49:00 EDT 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