From 91199cf81d87e73d7094ec0376b6a85b64904dfa Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 7 Jan 2005 12:58:03 +0000 Subject: Backport of 1.20: Workaround for the fact that urllib2 doesn't default to "file:" urls. --- Mac/Tools/IDE/PackageManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py index 0041a17..5b0cec2 100755 --- a/Mac/Tools/IDE/PackageManager.py +++ b/Mac/Tools/IDE/PackageManager.py @@ -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): -- cgit v0.12