def __init__(self): self._config = Config(os.path.join(PROJECT_ROOT, 'config.json')) self._db = DrugDatabase(self._config) self._env = Environment(loader=FileSystemLoader( [TEMPLATE_ROOT, TRANSLATIONS_ROOT]), lstrip_blocks=True, trim_blocks=True)
def __init__(self): self._config = Config(os.path.join(PROJECT_ROOT, 'config.json')) self._db = DrugDatabase(self._config) self._env = Environment(loader=PackageLoader('combogen', 'templates'), lstrip_blocks=True, trim_blocks=True)