summaryrefslogtreecommitdiff
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2005-01-07 12:50:12 +0000
committerJack Jansen <jack.jansen@cwi.nl>2005-01-07 12:50:12 +0000
commit30620ac6418ac7cead213ba677ca30600eef3b7b (patch)
tree1ea38e086e4ce316e7a7c28c1c1a7ccbc284e1da /Mac/Tools
parentAlways set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set (diff)
downloadcpython-30620ac6418ac7cead213ba677ca30600eef3b7b.tar.gz
cpython-30620ac6418ac7cead213ba677ca30600eef3b7b.tar.bz2
cpython-30620ac6418ac7cead213ba677ca30600eef3b7b.zip
Workaround for the fact that urllib2 doesn't default to "file:" urls.
Diffstat (limited to 'Mac/Tools')
-rwxr-xr-xMac/Tools/IDE/PackageManager.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py
index 0041a17979d..76a184fbf03 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):