[mod_python] how to import current dir other module

Lee jundong leejd80 at gmail.com
Sun Dec 12 02:32:45 EST 2004


I write a module:sqlconn.py.This module is used to connect to mysql
server.I put this module into current dir. This path have many other
module,example: login.py. Import sqlconn in login.py, log outputting
is can't find module.When i move sqlconn.py to Python path,import ok.
How to import current dir module???

-- 
My Blog >> http://leejd.cndev.org
My QQ >> 9847243


More information about the Mod_python mailing list