importing a package

Damjan gdamjan at
Wed Jun 22 15:34:00 CEST 2005

> I developed a package with a structure like this
> src/
>     dir1/
>     dir2/

Importing dir2/file2 from dir1/ works here, because when yuo started
the testfile script the src/ directory was added to the sys.path list.

If you relocate dir1/ and dir2/ in a "package" directory here it will not


More information about the Python-list mailing list