conversion between (OS native) paths and urls

S

Stefan Seefeld

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
 
P

Peter Otten

Stefan said:
What is the suggested way to generate an url from a path,
dealing with issues such as backslash-to-slash conversion on windows ?

I'm confident that it will do the right thing on windows, too.

Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top