X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6b2cf8c9e17dfc59a1b3e8b18f1b06eae9344bf8..bd4b9c8c54a9befa699cf9d410c4c5010544b030:/wxPython/scripts/CreateBatchFiles.py?ds=sidebyside diff --git a/wxPython/scripts/CreateBatchFiles.py b/wxPython/scripts/CreateBatchFiles.py new file mode 100644 index 0000000000..4427ce4c61 --- /dev/null +++ b/wxPython/scripts/CreateBatchFiles.py @@ -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() + +