]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/viewdocs.py
added obsolescence note
[wxWidgets.git] / wxPython / distrib / viewdocs.py
CommitLineData
1e4a197e
RD
1#!/usr/bin/env python
2#---------------------------------------------------------------------------
3
4import sys, os, glob
5from wxPython.tools import helpviewer
6
7
8# Figure out the path where this app is located
9if __name__ == '__main__':
10 basePath = os.path.dirname(sys.argv[0])
11else:
12 basePath = os.path.dirname(__file__)
13
14
15# setup the args
16args = ['',
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
23for file in glob.glob(os.path.join(basePath, "*.zip")):
24 if file not in args:
25 args.append(file)
26
27# launch helpviewer
28helpviewer.main(args)
29
30#---------------------------------------------------------------------------
31