From: Jack Jansen Date: Fri, 7 Jan 2005 12:50:12 +0000 (+0000) Subject: Workaround for the fact that urllib2 doesn't default to "file:" urls. X-Git-Tag: v2.5a0~2170 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30620ac6418ac7cead213ba677ca30600eef3b7b;p=thirdparty%2FPython%2Fcpython.git Workaround for the fact that urllib2 doesn't default to "file:" urls. --- diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py index 0041a17979d6..76a184fbf03d 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):