mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user