def get_config():
if not len(sys.argv) > 1:
raise Exception('please give config file path')
if not os.path.exists(sys.argv[1]):
raise Exception("config file doesn't exists")
stream = open(sys.argv[1], "r")
docs = yaml.load_all(stream)
for f in docs:
return f
评论列表
文章目录