def parse(self):
if not os.path.isdir("recipes"):
raise ParseError("No recipes directory found.")
self.__cache.open()
try:
self.__parse()
# config files overrule everything else
for c in self.__configFiles:
c = str(c) + ".yaml"
if not os.path.isfile(c):
raise ParseError("Config file {} does not exist!".format(c))
self.__parseUserConfig(c)
finally:
self.__cache.close()
评论列表
文章目录