def path2url(path):
 return (u'file:' + urllib.pathname2url(os.path.abspath(path)))

def path2url ( path ) : return ( u'file:' + urllib . pathname2url ( os . path . abspath ( path ) ) )
simple helper for nt systems to replace slash syntax .