diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2005-01-07 12:50:12 +0000 |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2005-01-07 12:50:12 +0000 |
commit | 30620ac6418ac7cead213ba677ca30600eef3b7b (patch) | |
tree | 1ea38e086e4ce316e7a7c28c1c1a7ccbc284e1da /Mac/Tools | |
parent | Always set CONFIGURE_MACOSX_DEPLOYMENT_TARGET otherwise it may be set (diff) | |
download | cpython-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-x | Mac/Tools/IDE/PackageManager.py | 2 |
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): |