Gregory (Grisha) Trubetskoy
grisha at modpython.org
Fri Jan 9 17:05:53 EST 2004
It's impossible to answer this without the details of your configuration. Take a look at your req.filename. PSP tries to figure out the "current directory" by looking at req.filename. Under certain configs this won't work. Grisha On Fri, 9 Jan 2004, jalil wrote: > > In my python default handler, I am trying to load an html file in my > code using the example below: > > template = psp.PSP(req, filename='template.html') > > The html file is located in the same directory as my .py file but this call > fails unless I pass the full path of the html file in the call! > > Any way to change this behaviour? > > Thanks, > > -Jalil > > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python >
|