[mod_python] Directory containing PythonHandler directive.

Gregory (Grisha) Trubetskoy grisha at modpython.org
Fri Sep 10 11:36:18 EDT 2004



On Fri, 10 Sep 2004, Graham Dumpleton wrote:

> Is there any way that one can find out within a content handler at what directory
> level the PythonHandler directive appeared for the request being processed?
>
> Ie., if PythonHandler is defined in:
>
>  /a/b/.htaccess
>
> and the request is for:
>
>  /a/b/c/d/e.html
>

It should be sys.path[0], unless you use PythonPath.

Grisha


More information about the Mod_python mailing list