conversion between (OS native) paths and urls

Stefan Seefeld sseefeld at art.ca
Mon Jul 5 13:29:47 EDT 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 ?

Thanks,
		Stefan




More information about the Python-list mailing list