This commit was manufactured by cvs2svn to create tag
'DEBIAN_2_4_3_1_SARGE_v_2_4_2_4'. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/tags/DEBIAN_2_4_3_1_SARGE_v_2_4_2_4@34395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#----------------------------------------------------------------------
|
||||
# Name: CreateBatchFiles.py
|
||||
# Purpose: Run by the InnoSetup installer to create a DOS batch
|
||||
# Purpose: Run by the InnoSetup installer to create a DOS batch
|
||||
# file for each of the wxPython tool scripts.
|
||||
#
|
||||
# Author: Robin Dunn
|
||||
@@ -16,12 +16,16 @@ python = sys.executable
|
||||
pythonw = 'start ' + os.path.join(os.path.split(python)[0], 'pythonw.exe')
|
||||
scriptdir = os.getcwd()
|
||||
|
||||
scripts = [ ("img2png", 0),
|
||||
("img2py", 0),
|
||||
("img2xpm", 0),
|
||||
("xrced", 1),
|
||||
("pyshell", 1),
|
||||
("pycrust", 1),
|
||||
scripts = [ ("img2png", 0),
|
||||
("img2py", 0),
|
||||
("img2xpm", 0),
|
||||
("xrced", 1),
|
||||
("pyshell", 1),
|
||||
("pycrust", 1),
|
||||
("pywrap", 1),
|
||||
("pyalamode", 1),
|
||||
("pyalacarte", 1),
|
||||
("helpviewer", 1),
|
||||
]
|
||||
|
||||
template = """\
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#----------------------------------------------------------------------
|
||||
# Name: CreateMacScripts.py
|
||||
# Purpose: Massages the scripts to be usable with MachoPython
|
||||
# Purpose: Massages the scripts to be usable with MachoPython
|
||||
#
|
||||
# Author: Robin Dunn
|
||||
#
|
||||
@@ -13,23 +13,30 @@ import sys, os
|
||||
|
||||
python = sys.executable
|
||||
destdir = os.path.split(python)[0]
|
||||
prefix = destdir
|
||||
pythonw = os.path.join(destdir, 'pythonw')
|
||||
scriptdir = os.getcwd()
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
destdir = sys.argv[1]
|
||||
root = sys.argv[1]
|
||||
p = prefix = sys.argv[2]
|
||||
if p[0] == '/': p = p[1:]
|
||||
destdir = os.path.join(root, p)
|
||||
|
||||
|
||||
from CreateBatchFiles import scripts
|
||||
repltxt = "#!/usr/bin/env python"
|
||||
|
||||
gui_template = """\
|
||||
#!/bin/sh
|
||||
exec /Applications/Python.app/Contents/MacOS/python %s.py
|
||||
"""
|
||||
|
||||
# use the existing pythonw as a template
|
||||
gui_template = open(pythonw, "r").read().replace('"$@"', '"%s.py" "$@"')
|
||||
|
||||
|
||||
def main():
|
||||
for script, usegui in scripts:
|
||||
destfile = os.path.join(destdir, script)
|
||||
prefixfile = os.path.join(prefix, script)
|
||||
|
||||
thescript = open(script).read()
|
||||
if usegui:
|
||||
f = open(destfile+'.py', 'w')
|
||||
@@ -38,7 +45,7 @@ def main():
|
||||
f.close()
|
||||
f = open(destfile, 'w')
|
||||
print destfile
|
||||
f.write(gui_template % destfile)
|
||||
f.write(gui_template % prefixfile)
|
||||
f.close()
|
||||
|
||||
else:
|
||||
|
4
wxPython/scripts/helpviewer
Executable file
4
wxPython/scripts/helpviewer
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from wxPython.tools.helpviewer import main
|
||||
main()
|
3
wxPython/scripts/helpviewer.bat
Executable file
3
wxPython/scripts/helpviewer.bat
Executable file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\helpviewer %1 %2 %3 %4 %5 %6 %7 %8 %9
|
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
C:\TOOLS\PYTHON22\PYTHON.EXE C:\projects\wx\wxPython\scripts\img2png %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
E:\TOOLS\PYTHON22\PYTHON.EXE C:\PROJECTS\wx\wxPython\scripts\img2png %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
C:\TOOLS\PYTHON22\PYTHON.EXE C:\projects\wx\wxPython\scripts\img2py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
E:\TOOLS\PYTHON22\PYTHON.EXE C:\PROJECTS\wx\wxPython\scripts\img2py %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
C:\TOOLS\PYTHON22\PYTHON.EXE C:\projects\wx\wxPython\scripts\img2xpm %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
E:\TOOLS\PYTHON22\PYTHON.EXE C:\PROJECTS\wx\wxPython\scripts\img2xpm %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
4
wxPython/scripts/pyalacarte
Executable file
4
wxPython/scripts/pyalacarte
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from wx.py.PyAlaCarte import main
|
||||
main()
|
3
wxPython/scripts/pyalacarte.bat
Executable file
3
wxPython/scripts/pyalacarte.bat
Executable file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pyalacarte %1 %2 %3 %4 %5 %6 %7 %8 %9
|
4
wxPython/scripts/pyalamode
Executable file
4
wxPython/scripts/pyalamode
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from wx.py.PyAlaMode import main
|
||||
main()
|
3
wxPython/scripts/pyalamode.bat
Executable file
3
wxPython/scripts/pyalamode.bat
Executable file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pyalamode %1 %2 %3 %4 %5 %6 %7 %8 %9
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from wxPython.lib.PyCrust.PyCrustApp import main
|
||||
from wx.py.PyCrust import main
|
||||
main()
|
||||
|
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start C:\TOOLS\PYTHON22\pythonw.exe C:\projects\wx\wxPython\scripts\pycrust %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pycrust %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from wxPython.lib.PyCrust.PyShellApp import main
|
||||
from wx.py.PyShell import main
|
||||
main()
|
||||
|
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start C:\TOOLS\PYTHON22\pythonw.exe C:\projects\wx\wxPython\scripts\pyshell %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pyshell %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
4
wxPython/scripts/pywrap
Executable file
4
wxPython/scripts/pywrap
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from wx.py.PyWrap import main
|
||||
main()
|
3
wxPython/scripts/pywrap.bat
Executable file
3
wxPython/scripts/pywrap.bat
Executable file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\pywrap %1 %2 %3 %4 %5 %6 %7 %8 %9
|
@@ -1,3 +1,3 @@
|
||||
@echo off
|
||||
|
||||
start C:\TOOLS\PYTHON22\pythonw.exe C:\projects\wx\wxPython\scripts\xrced %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
start E:\TOOLS\PYTHON22\pythonw.exe C:\PROJECTS\wx\wxPython\scripts\xrced %1 %2 %3 %4 %5 %6 %7 %8 %9
|
||||
|
Reference in New Issue
Block a user