[mod_python] Directory separator in uri/filename on Win32.

Graham Dumpleton grahamd at dscpl.com.au
Tue Nov 9 03:50:31 EST 2004

Can someone who uses mod_python on the Win32 platform, confirm for me 
directory separator is used in req.uri and req.filename on Win32.

On UNIX (POSIX) one would get something like:

   req.uri : /projects/vampire/index.html
   req.filename = /usr/local/etc/httpd/htdocs/projects/vampire/index.html

I am presuming that on Win32, the URI still uses a forward slash, but 
the filename will use backward slash in line with convention for 
and what os.path.sep is set to. Ie.,

   req.uri : /projects/vampire/index.html
   req.filename = \usr\local\etc\httpd\htdocs\projects\vampire\index.html

Is this correct, or does Apache normalise it to the POSIX convention on
the Win32 platform?

Graham Dumpleton (grahamd at dscpl.com.au)

More information about the Mod_python mailing list