ciclos

ref: master

core/config.py


1
2
3
4
5
6
7
8
9
from configparser import ConfigParser

config = ConfigParser()
config.read_file(open('config.ini'))

env = config['meta']['environment'] or 'dev'
title = config['meta']['title']

read_from_config = lambda key: config.get(env, key)