def template(self): """return template directory""" return self.path + fshelpers.ensure_separator(self.config["template"])
def output(self): """return output directory""" return self.path + fshelpers.ensure_separator(self.config["output"])
def __init__(self, path): self.path = fshelpers.ensure_separator(path) self.config = yaml.load(fshelpers.read(path, "config.yaml"))