[mod_python] mod_python imports foo/__init__.py, not foo/bar.py

Fabiano Sidler fabianosidler at swissonline.ch
Sat Oct 15 20:24:29 EDT 2005


Wow, what a fast answer!

Graham Dumpleton wrote:
>    What If I Have a Module and a Package With The Same Name?

No, I have:
 foobar.py
 dir/foobar.py
which is surely inapt, but these two modules aren't imported to the same
script at the same time. And right now I found out that top-level modules
can be imported without problems (i.e. foobar).

Best wishes,
fips


More information about the Mod_python mailing list