diff options
author | Rob Cakebread <pythonhead@gentoo.org> | 2005-05-13 19:31:46 +0000 |
---|---|---|
committer | Rob Cakebread <pythonhead@gentoo.org> | 2005-05-13 19:31:46 +0000 |
commit | a9c916b7d96345d473b9457db34fa4341257e5d7 (patch) | |
tree | 0e506e1c11fa28cb01a23de300708e855e2a222f /dev-python/wxpython-docs/files | |
parent | Fix bug #92504. (diff) | |
download | historical-a9c916b7d96345d473b9457db34fa4341257e5d7.tar.gz historical-a9c916b7d96345d473b9457db34fa4341257e5d7.tar.bz2 historical-a9c916b7d96345d473b9457db34fa4341257e5d7.zip |
Removed warning dialog. bug# 92481
Package-Manager: portage-2.0.51.21-r1
Diffstat (limited to 'dev-python/wxpython-docs/files')
-rw-r--r-- | dev-python/wxpython-docs/files/digest-wxpython-docs-2.6.0.0-r1 (renamed from dev-python/wxpython-docs/files/digest-wxpython-docs-2.6.0.0) | 0 | ||||
-rw-r--r-- | dev-python/wxpython-docs/files/wxpython-docs-2.6.0.0-writable.patch | 49 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-python/wxpython-docs/files/digest-wxpython-docs-2.6.0.0 b/dev-python/wxpython-docs/files/digest-wxpython-docs-2.6.0.0-r1 index 75d8976c475f..75d8976c475f 100644 --- a/dev-python/wxpython-docs/files/digest-wxpython-docs-2.6.0.0 +++ b/dev-python/wxpython-docs/files/digest-wxpython-docs-2.6.0.0-r1 diff --git a/dev-python/wxpython-docs/files/wxpython-docs-2.6.0.0-writable.patch b/dev-python/wxpython-docs/files/wxpython-docs-2.6.0.0-writable.patch new file mode 100644 index 000000000000..8e35306a9002 --- /dev/null +++ b/dev-python/wxpython-docs/files/wxpython-docs-2.6.0.0-writable.patch @@ -0,0 +1,49 @@ +--- docs/viewdocs.pyorg 2005-05-13 12:09:33.394994952 -0700 ++++ docs/viewdocs.py 2005-05-13 12:10:23.778335520 -0700 +@@ -15,33 +15,19 @@ + basePath = '.' + + +-# test for write access +-if os.access(basePath, os.W_OK): ++# setup the args ++args = ['', ++ '--cache=/tmp', ++ os.path.join(basePath, 'wx.zip'), ++ os.path.join(basePath, 'ogl.zip'), ++ ] ++ ++# add any other .zip files found ++for file in glob.glob(os.path.join(basePath, "*.zip")): ++ if file not in args: ++ args.append(file) + +- # setup the args +- args = ['', +- '--cache='+basePath, +- os.path.join(basePath, 'wx.zip'), +- os.path.join(basePath, 'ogl.zip'), +- ] +- +- # add any other .zip files found +- for file in glob.glob(os.path.join(basePath, "*.zip")): +- if file not in args: +- args.append(file) +- +- # launch helpviewer +- helpviewer.main(args) +- +-else: +- app = wx.PySimpleApp() +- dlg = wx.MessageDialog(None, +- "The wxDocs need to be located in a directory that is writable by you. " +- "I am unable to start the viewer in its current location.", +- "Error!", wx.OK|wx.ICON_EXCLAMATION) +- dlg.ShowModal() +- dlg.Destroy() +- app.MainLoop() ++# launch helpviewer ++helpviewer.main(args) + +-#--------------------------------------------------------------------------- + |