parameters: (*tools)
docstring: Check that each tool named in tools exists in SUBSTS and is executable.
docstring_summary: Check that each tool named in tools exists in SUBSTS and is executable.
docstring_tokens: Check that each tool named in tools exists in SUBSTS and is executable .
function: def check_tools(*tools):
      '''
      Check that each tool named in tools exists in SUBSTS and is executable.
      '''
      for tool in tools:
          path = buildconfig.substs[tool]
          if not path:
              raise Exception('Required tool "%s" not found' % tool)
          if not os.path.isfile(path):
              raise Exception('Required tool "%s" not found at path "%s"' % (tool, path))
          if not os.access(path, os.X_OK):
              raise Exception('Required tool "%s" at path "%s" is not executable' % (tool, path))
function_tokens: def check_tools ( * tools ) : for tool in tools : path = buildconfig . substs [ tool ] if not path : raise Exception ( 'Required tool "%s" not found' % tool ) if not os . path . isfile ( path ) : raise Exception ( 'Required tool "%s" not found at path "%s"' % ( tool , path ) ) if not os . access ( path , os . X_OK ) : raise Exception ( 'Required tool "%s" at path "%s" is not executable' % ( tool , path ) )