def from_workspace(cls, path):
filename = os.path.join(path, '.shipmaster.yaml')
if not os.path.exists(filename):
return None
with open(filename, 'r') as file:
return cls.from_kwargs(path, **yaml.load(file, yaml.RoundTripLoader))
评论列表
文章目录