[mod_python] any way to get the current handler's directory?

vegetax vegeta.z at gmail.com
Sat Apr 30 23:01:44 EDT 2005


i need that info to parse the url from a handler.

sys.path[0] works if there is only one "myhandler" per server

Also works this way, but i dont like it:

<Directory "myweb/dir">
  SetHandler mod_python
  PythonHandler myhandler
  PythonOption dirpath "myweb/dir"
<Directory/>



More information about the Mod_python mailing list