Ivo van der Sangen wrote: > I was wondering if I could use relative paths in a mod_python script. At > the moment I am defining a constant string > "/path/to/dir/where/script/resides". > [snip]
You can use Python's built-in __file__ variable. It is set to the absolute location of your script. You can then use one of the built-in functions in the `os' module (I forgot which) to extract the directory your script resides. Jochem. -- E-mail address encrypted using ROT13. -- http://mail.python.org/mailman/listinfo/python-list