code: def file_to_url(self, file_rel_path):
          
          _abs_path = os.path.abspath(file_rel_path)
          return urlparse.urlparse(_abs_path, scheme='file').geturl()
docs: Convert a relative file path to a file URL.