mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 11:00:07 +01:00
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
38 lines
1.1 KiB
Python
38 lines
1.1 KiB
Python
|
|
"""
|
|
This is a way to save the startup time when running img2py on lots of
|
|
files...
|
|
"""
|
|
import sys, os
|
|
if os.path.abspath('..') not in sys.path:
|
|
sys.path.append(os.path.abspath('..'))
|
|
|
|
vspdir = 'f:/Python%s-sp.v%s' % ( '25', '660') # version-specific site-packages
|
|
if os.path.exists(vspdir) and vspdir not in sys.path:
|
|
sys.path.append(vspdir)
|
|
|
|
from wx.tools import img2py
|
|
|
|
|
|
command_lines = [
|
|
" -u -n First PlayerFirst.png ../images.py",
|
|
"-a -u -n Prev PlayerPrev.png ../images.py",
|
|
"-a -u -n Next PlayerNext.png ../images.py",
|
|
"-a -u -n Last PlayerLast.png ../images.py",
|
|
"-a -u -n PrintIt Printer.png ../images.py",
|
|
"-a -u -n SaveIt Save.png ../images.py",
|
|
"-a -u -n Left ArrowLeft.png ../images.py",
|
|
"-a -u -n Right ArrowRight.png ../images.py",
|
|
"-a -u -n Width DirectionH.png ../images.py",
|
|
"-a -u -n Height DirectionV.png ../images.py",
|
|
"-a -u -n ZoomIn ZoomIn.png ../images.py",
|
|
"-a -u -n ZoomOut ZoomOut.png ../images.py",
|
|
]
|
|
|
|
|
|
if __name__ == "__main__":
|
|
for line in command_lines:
|
|
args = line.split()
|
|
img2py.main(args)
|
|
|