Deprecating old approach

This commit is contained in:
2026-06-11 08:07:38 +08:00
parent 15badfeabe
commit 1a38577817
51 changed files with 1716 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/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.getboolean( "Env", "Debug" )
else:
Config[ "Env" ][ "Debug" ] = str( DEBUG == "1" )
REDIS_CONN = os.getenv( "REDIS_CONN" )
if not REDIS_CONN is None:
Config[ "Redis" ][ "ConnStr" ] = REDIS_CONN