You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mod_python-dev@quetz.apache.org by Alberto Ruiz <ar...@gulic.org> on 2005/05/04 01:58:45 UTC
Relative path.
I have noticed, that the handlers, execute the scripts with '/' as the
current working directory, so it is difficult to include files, like
templates, using the relative path. I'm using the __file__ constant to
discover the path. There is another constant in the library that gives
me the cwd?
I think that execute the script on the directory where it is located, is
a much better aproach. There is any reason for not doing it?
Thanks,
Alberto Ruiz