Commits

Lenard Lindstrom  committed fc7c853

Fix missing Windows drive in docs.__main__.py

  • Participants
  • Parent commits eee6374

Comments (0)

Files changed (1)

File docs/__main__.py

 pkg_dir = os.path.dirname(os.path.abspath(__file__))
 main_page = os.path.join(pkg_dir, 'index.html')
 url_path = quote('/'.join(iterpath(main_page)))
+drive, rest = os.path.splitdrive(__file__)
+if drive:
+    url_path = "%s/%s" % (drive, url_path)
 url = urlunparse(('file', '', url_path, '', '', ''))
 webbrowser.open(url)