conversion between (OS native) paths and urls

Stefan Seefeld sseefeld at
Mon Jul 5 19:29:47 CEST 2004

hi there,

I'm generating a set of html pages that refer to each other
via relative URLs. However, during the generation of these
files I only deal with paths (as generated by the os.path module).
What is the suggested way to generate an url from a path,
dealing with issues such as backslash-to-slash conversion on windows ?


More information about the Python-list mailing list