[mod_python] Problem with 'import' statement in 'execfile' script

Michael C. Neel neel at mediapulse.com
Fri Dec 12 13:38:15 EST 2003


> import sys
> sys.path.append('/ab/system')
> from Tools.Utilities import Utilities
> 

Have you tried using the PythonPath directive
(http://www.modpython.org/live/current/doc-html/dir-other-pp.html)?  I'm
not sure if setting the path inside the script is something you can do
(but again, I'm not sure).

Mike



More information about the Mod_python mailing list