Make batch files for the tool scripts, and other related changes for
win32. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		
							
								
								
									
										36
									
								
								wxPython/scripts/CreateBatchFiles.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								wxPython/scripts/CreateBatchFiles.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,36 @@
 | 
			
		||||
#----------------------------------------------------------------------
 | 
			
		||||
# Name:         CreateBatchFiles.py
 | 
			
		||||
# Purpose:	Run by the InnoSetup installer to create a DOS batch
 | 
			
		||||
#               file for each of the wxPython tool scripts.
 | 
			
		||||
#
 | 
			
		||||
# Author:       Robin Dunn
 | 
			
		||||
#
 | 
			
		||||
# Created:      8-Aug-2002
 | 
			
		||||
# Copyright:    (c) 2002 by Total Control Software
 | 
			
		||||
# Licence:      wxWindows license
 | 
			
		||||
#----------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
import sys, os
 | 
			
		||||
 | 
			
		||||
python = sys.executable
 | 
			
		||||
scriptdir = os.getcwd()
 | 
			
		||||
 | 
			
		||||
scripts = [ "img2png",
 | 
			
		||||
            "img2py",
 | 
			
		||||
            "img2xpm",
 | 
			
		||||
            "xrced",
 | 
			
		||||
            ]
 | 
			
		||||
 | 
			
		||||
template = """\
 | 
			
		||||
@echo off
 | 
			
		||||
%(python)s %(scriptdir)s\\%(script)s %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9
 | 
			
		||||
"""
 | 
			
		||||
 | 
			
		||||
for script in scripts:
 | 
			
		||||
    batfile = os.path.join(scriptdir, script + '.bat')
 | 
			
		||||
    print "Creating", batfile
 | 
			
		||||
    f = open(batfile, 'w')
 | 
			
		||||
    f.write(template % vars())
 | 
			
		||||
    f.close()
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user