def file_url(path):
 return QUrl.fromLocalFile(path).toString(QUrl.FullyEncoded)

def file_url ( path ) : return QUrl . fromLocalFile ( path ) . toString ( QUrl . FullyEncoded )
return a file:// url to the given local path .