* Refactor the code that post-processes the code output by SIP to a separate function so it can be used in more than one place.

* Check for the presense of a msgfmt command before trying to rebuild the message catalogs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-10-20 19:27:21 +00:00
parent 46913dc22c
commit 143b1ecb58
2 changed files with 41 additions and 11 deletions

View File

@@ -565,3 +565,17 @@ def getEtgSipCppFiles(etg):
def getEtgSipHeaders(etg):
return _getSbfValue(etg, 'headers')
def findCmd(cmd):
"""
Search the PATH for a matching command
"""
PATH = os.environ['PATH'].split(os.pathsep)
if os.name == 'nt' and not cmd.endswith('.exe'):
cmd += '.exe'
for p in PATH:
c = os.path.join(p, cmd)
if os.path.exists(c):
return c
return None