]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/viewdocs.py
Cleanup obsolete samples
[wxWidgets.git] / wxPython / distrib / viewdocs.py
1 #!/usr/bin/env python
2 #---------------------------------------------------------------------------
3
4 import sys, os, glob
5 from wxPython.tools import helpviewer
6
7
8 # Figure out the path where this app is located
9 if __name__ == '__main__':
10 basePath = os.path.dirname(sys.argv[0])
11 else:
12 basePath = os.path.dirname(__file__)
13
14
15 # setup the args
16 args = ['',
17 '--cache='+basePath,
18 os.path.join(basePath, 'wx.zip'),
19 os.path.join(basePath, 'ogl.zip'),
20 ]
21
22 # add any other .zip files found
23 for file in glob.glob(os.path.join(basePath, "*.zip")):
24 if file not in args:
25 args.append(file)
26
27 # launch helpviewer
28 helpviewer.main(args)
29
30 #---------------------------------------------------------------------------
31