urllib2.url2pathname()

urllib2.url2pathname(pathname)[source]

OS-specific conversion from a relative URL of the ‘file’ scheme to a file system path; not recommended for general use.