The viewdocs script can now find additional .zip books automatically.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
import sys, os
|
||||
import sys, os, glob
|
||||
from wxPython.tools import helpviewer
|
||||
|
||||
|
||||
@@ -19,7 +19,13 @@ args = ['',
|
||||
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)
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user