[mod_python] apache.py

Gregory (Grisha) Trubetskoy grisha at modpython.org
Thu Jan 10 16:01:02 EST 2002


http://www.modpython.org/FAQ/faqw.py?req=all#2.3

On 10 Jan 2002, Chuck Lima wrote:

> Hello,
>
> I may be a little late to the game on this one, but here goes.
>
> python 2.1
> apache 1.3.22
> mod_python 2.7.6
>
> Lines 356 and 359 of apache.py were hacking off the "y" from my modules
> i.e.: "mymodule.py"  was not found because apache.py was looking for
> "mymodule.p".  It seems the intention was to avoid loading compiled
> modules.  mod_pyton has never compiled my modules -- is this not
> standard?
>
>
> Changes I made - -
>
> original 356:
> if os.path.exists(filepath[:-1]) :
>
> new 356:
> if os.path.exists(filepath) :
>
> Also, "filepath[:-1]" on line 359 was changed to "filepath".
>
> This seems to have solved the problem without adversely affecting the
> running of my scripts.
>
>
> The really odd thing, though; is that I've got another system running
> the (practically) same setup with no mods.  The difference being the
> apache version.
>
> no mods here:
> python 2.1
> apache 1.3.19
> mod_python 2.7.6
>
> Comments, please.
>
> Thanks,
> -Chuck
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://www.modpython.org/mailman/listinfo/mod_python
>




More information about the Mod_python mailing list