Commit 1709269f authored by Jack Jansen's avatar Jack Jansen

Workaround for the fact that urllib2 doesn't default to "file:" urls.

parent e030960a
......@@ -181,6 +181,8 @@ class PackageManagerMain(Wapplication.Application):
filename = EasyDialogs.AskFileForOpen(typeList=("TEXT",))
if filename:
filename = urllib.pathname2url(filename)
if filename[:5] != 'file:':
filename = 'file:' + filename
self.opendoc(filename)
def domenu_openURL(self, *args):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment