[mod_python] The new module loader

Dan Eloff dan.eloff at gmail.com
Fri Apr 21 16:17:37 EDT 2006

Whoops. I was looking over the code for import_module and I figured it
out. path is meant to be a list, duh. Maybe add an

assert not path or isinstance(path, list), 'path must be a list of
paths to search for the module.'

to your code near the top of the function. Otherwise if path is a
string, search_path.extend(path) doesn't throw, but it makes a huge
search_path of single character locations and fails utterly (and


More information about the Mod_python mailing list