]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/viewdocs.py
2 #---------------------------------------------------------------------------
6 from wx
.tools
import helpviewer
9 # Figure out the path where this app is located
10 if __name__
== '__main__':
11 basePath
= os
.path
.dirname(sys
.argv
[0])
13 basePath
= os
.path
.dirname(__file__
)
18 # test for write access
19 if os
.access(basePath
, os
.W_OK
):
24 os
.path
.join(basePath
, 'wx.zip'),
25 os
.path
.join(basePath
, 'ogl.zip'),
28 # add any other .zip files found
29 for file in glob
.glob(os
.path
.join(basePath
, "*.zip")):
37 app
= wx
.PySimpleApp()
38 dlg
= wx
.MessageDialog(None,
39 "The wxDocs need to be located in a directory that is writable by you. "
40 "I am unable to start the viewer in its current location.",
41 "Error!", wx
.OK|wx
.ICON_EXCLAMATION
)
46 #---------------------------------------------------------------------------