[mod_python] import madness!

Kamil Niechajewicz kamil at nvstudio.pl
Wed May 12 14:18:24 EDT 2004


On Tue, 11 May 2004 13:11:21 -0500
The Doctor What <list.modpython at docwhat.gerf.org> wrote:

> I have found an interesting bug.  My handler has, at it's start,
> something like:
> from blah import config
> 
> This is great, works fine, etc. EXCEPT when I clean up the .pyc
> files in the blah directory!  Then it says that it cannot import
> config!

this is strange, but there is solution for it. just run the 
interpreter and type 'import config'. it will automatically
create .pyc files and everything will be fine.
the thing i don't understand about it is why it does not 
import from .py files when no .pyc is present? 

/KN


More information about the Mod_python mailing list