Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 18 lines (13 sloc) 400 Bytes
try:
import configparser
except ImportError:
import ConfigParser as configparser
config = configparser.SafeConfigParser({
"debug":"False",
"templatepath":"./templates/",
"cache":"False"})
config.read("config.ini")
DEBUG = config.getboolean("app", "debug")
CACHE = config.getboolean("app", "cache")
TEMPLATEPATH = config.get("app", "templatepath")
SECRET = config.get("app", "secret")