def load_apis(self, path, ignore=[], include_crash_api=False):
if not path:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>if type(ignore) is not list:<EOL><INDENT>raise Exception("<STR_LIT>")<EOL><DEDENT>ignore.append('<STR_LIT>')<EOL>apis = {}<EOL>log.debug("<STR_LIT>" % path)<EOL>for root, dirs, files in os.walk(path):<EOL><INDENT>for f in files:<EOL><INDENT>if f.endswith('<STR_LIT>'):<EOL><INDENT>api_name = f.replace('<STR_LIT>', '<STR_LIT>')<EOL>if api_name in ignore:<EOL><INDENT>log.info("<STR_LIT>" % api_name)<EOL>continue<EOL><DEDENT>apis[api_name] = os.path.join(path, f)<EOL>log.debug("<STR_LIT>" % (api_name, f))<EOL><DEDENT><DEDENT><DEDENT>for name in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>yaml_path = pkg_resources.resource_filename(__name__, '<STR_LIT>' % name)<EOL>if not os.path.isfile(yaml_path):<EOL><INDENT>yaml_path = os.path.join(os.path.dirname(sys.modules[__name__].__file__), '<STR_LIT>' % name)<EOL><DEDENT>apis[name] = yaml_path<EOL><DEDENT>if not include_crash_api:<EOL><INDENT>del apis['<STR_LIT>']<EOL><DEDENT>self.path_apis = path<EOL>self.apis = apis<EOL>return self<EOL>
Load all swagger files found at the given path, except those whose
        names are in the 'ignore' list