]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/scripts/CreateBatchFiles.py
   1 #---------------------------------------------------------------------- 
   2 # Name:         CreateBatchFiles.py 
   3 # Purpose:      Run by the InnoSetup installer to create a DOS batch 
   4 #               file for each of the wxPython tool scripts. 
   9 # Copyright:    (c) 2002 by Total Control Software 
  10 # Licence:      wxWindows license 
  11 #---------------------------------------------------------------------- 
  15 python 
= sys
.executable
 
  16 pythonw 
= 'start ' + os
.path
.join(os
.path
.split(python
)[0], 'pythonw.exe') 
  17 scriptdir 
= os
.getcwd() 
  19 scripts 
= [ ("img2png",    0), 
  35 %s %s\\%s %%1 %%2 %%3 %%4 %%5 %%6 %%7 %%8 %%9 
  39     for script
, usegui 
in scripts
: 
  40         batfile 
= os
.path
.join(scriptdir
, script 
+ '.bat') 
  41         print "Creating", batfile
 
  42         f 
= open(batfile
, 'w') 
  44             f
.write(template 
% (pythonw
, scriptdir
, script
)) 
  46             f
.write(template 
% (python
, scriptdir
, script
)) 
  50 if __name__ 
== '__main__':