[mod_python] CWD

Robert Brewer fumanchu at amor.org
Sun Nov 28 16:05:54 EST 2004

Lars M. wrote:
> I use mod_python + psp and os.path.dirname(__file__) gives me 
> C:\Python23\lib\site-packages\mod_python, not the directory 
> containing the 
> .psp script. any ideas? (WinXP SP2)

Is Request.filename what you're looking for?

Robert Brewer
Amor Ministries
fumanchu at amor.org

More information about the Mod_python mailing list