Use pushDir

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-10-21 21:08:14 +00:00
parent 1917331604
commit 759dd1d6c9

View File

@@ -610,11 +610,9 @@ def build_wx(options, args):
# Build the wx message catalogs, but first check that there is a msgfmt
# command available
if findCmd('msgfmt'):
old = os.getcwd()
os.chdir(os.path.join(wxDir(), 'locale'))
pwd = pushDir(posixjoin(wxDir(), 'locale'))
print 'Building message catalogs'
runcmd('make allmo')
os.chdir(old)
else:
print "WARNING: msgfmt command not found, message catalogs not rebulit.\n" \
" Please install gettext and associated tools."