forked from Botanical/BotanJS
16 lines
407 B
Python
16 lines
407 B
Python
#!/usr/bin/env python3
|
|
import configparser, os
|
|
|
|
Config = configparser.ConfigParser( interpolation = configparser.ExtendedInterpolation() )
|
|
Config.read( "settings.ini" )
|
|
|
|
DEBUG = os.getenv( "DEBUG" )
|
|
if DEBUG is None:
|
|
DEBUG = Config[ "Env" ][ "Debug" ]
|
|
else:
|
|
Config[ "Env" ][ "Debug" ] = DEBUG
|
|
|
|
REDIS_CONN = os.getenv( "REDIS_CONN" )
|
|
if not REDIS_CONN is None:
|
|
Config[ "Redis" ][ "ConnStr" ] = REDIS_CONN
|