]> git.saurik.com Git - wxWidgets.git/blame - wxPython/distrib/makemo.py
wxMemoryDC constructor now optionally accepts a wxBitmap parameter,
[wxWidgets.git] / wxPython / distrib / makemo.py
CommitLineData
9347ef2f
KO
1import sys, os, glob
2from distutils.dep_util import newer
3from distutils.spawn import spawn
4
5poFiles = glob.glob("*.po")
6
7for po in poFiles:
8 mo = os.path.splitext(po)[0] + '.mo'
9 if mo != 'wxstd.mo':
10 if newer(po, mo):
11 cmd = 'msgfmt --verbose -o %s %s' % (mo, po)
12 print cmd
13 spawn(cmd.split())
14 print
15 else:
16 print "%s is up to date" % mo