[mod_python] "Same module names" problem is solvable with exec ?

Graham Dumpleton grahamd at dscpl.com.au
Sat Oct 7 08:16:13 EDT 2006


On 07/10/2006, at 9:12 PM, Durumdara wrote:

> Hi !
>
> Many times I see in the FAQ, but I got this problem "LIVE" :-) in  
> yesterday.
> Because I use subdirectories, my scripts are stored in them.
>
> Some of the files have same name, and the site is produced errors !

Documented as issue 14 in:

   http://www.dscpl.com.au/wiki/ModPython/Articles/ 
ModuleImportingIsBroken

Not a problem if you are using mod_python.publisher in 3.2. Fixed
completely in mod_python 3.3.

> I see that subinterpreters are solves this problem, but I don't  
> know, how to use them from py.
> The site is growing quickly, and the chance of the same module  
> names in the site is growing too

Consider using mod_python from subversion source code repository
trunk. The code is proving to be quite stable at this point.

Graham



More information about the Mod_python mailing list