A huge glob of changes in the 2.4 branch merged over to HEAD
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		@@ -21,9 +21,6 @@ import os, sys, glob
 | 
			
		||||
wxmodule_template = """
 | 
			
		||||
\"\"\"Renamer stub: provides a way to drop the wx prefix from wxPython objects.\"\"\"
 | 
			
		||||
 | 
			
		||||
__cvsid__ = \"\x24Id: \x24\"
 | 
			
		||||
__revision__ = \"\x24Revision: \x24\"[11:-2]
 | 
			
		||||
 | 
			
		||||
from wx import _rename
 | 
			
		||||
from wxPython%(prefix)s import %(suffix)s
 | 
			
		||||
_rename(globals(), %(suffix)s.__dict__, modulename='%(name)s')
 | 
			
		||||
@@ -31,6 +28,11 @@ del %(suffix)s
 | 
			
		||||
del _rename
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
call_main = """
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    main()
 | 
			
		||||
"""    
 | 
			
		||||
 | 
			
		||||
wxPython_dir = "../wxPython"
 | 
			
		||||
 | 
			
		||||
subpackage_list = ['.',
 | 
			
		||||
@@ -50,6 +52,9 @@ skip_modules = [ '__init__', '__version__',
 | 
			
		||||
                 ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
add_call_main = ['py/PyAlaCarte.py',  'py/PyAlaMode.py',  'py/PyCrust.py',
 | 
			
		||||
                 'py/PyFilling.py',  'py/PyShell.py',  'py/PyWrap.py'
 | 
			
		||||
                 ]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -104,6 +109,8 @@ for subdir in subpackage_list:
 | 
			
		||||
        content = wxmodule_template % globals()
 | 
			
		||||
        f = open(fname, 'w')
 | 
			
		||||
        f.write(content)
 | 
			
		||||
        if fname in add_call_main:
 | 
			
		||||
            f.write(call_main)            
 | 
			
		||||
        f.close()
 | 
			
		||||
        print fname + ' created'
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user