code: def logo_element():
      
  
      path = os.path.join(resources_path(), 'img', 'logos', 'inasafe-logo.png')
      url = urllib.parse.urljoin('file:', urllib.request.pathname2url(path))
      return url
docs: Create a sanitised local url to the logo for insertion into html.
  
      :returns: A sanitised local url to the logo prefixed with file://.
      :rtype: str
  
      ..note:: We are not using QUrl here because on Windows 10 it returns
          an empty path if using QUrl.toLocalPath