[mod_python] Configuring pyc directory

Graham Dumpleton graham.dumpleton at gmail.com
Sat Sep 27 19:30:49 EDT 2008

2008/9/28 Robert Moore <rmoore787 at gmail.com>:
> Is there a way to configure mod python to read/write compiled pyc files for
> externally imported modules in a directory other than the directory
> containing the original py files?

No. That is a restriction of Python itself.

> I'm trying to secure an Apache server and
> don't want the process compiling the pyc files to have write access to the
> folder containing my libraries.

Using Apache/mod_python, it usually runs as special Apache user which
wouldn't have write permission to directories where your source code
is anyway, so not usually a problem.


More information about the Mod_python mailing list