Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)