Apache Mod-Python - Relative path.

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > May 2005 > Relative path.





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Relative path.
Alberto Ruiz

2005-05-03, 8:45 pm

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



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com