summaryrefslogtreecommitdiffstats
path: root/Mac/Tools
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2005-01-07 12:50:12 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2005-01-07 12:50:12 (GMT)
commit30620ac6418ac7cead213ba677ca30600eef3b7b (patch)
tree1ea38e086e4ce316e7a7c28c1c1a7ccbc284e1da /Mac/Tools
parentc110f8665f22b13561a728d493a7699ea0acdda0 (diff)
downloadcpython-30620ac6418ac7cead213ba677ca30600eef3b7b.zip
cpython-30620ac6418ac7cead213ba677ca30600eef3b7b.tar.gz
cpython-30620ac6418ac7cead213ba677ca30600eef3b7b.tar.bz2
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 0041a17..76a184f 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):