Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 08:39:00

0001 import re
0002 import sys
0003 
0004 from pandacommon.liveconfigparser.LiveConfigParser import (
0005     LiveConfigParser,
0006     expand_values,
0007 )
0008 
0009 from . import config_utils
0010 
0011 # get ConfigParser
0012 tmpConf = LiveConfigParser()
0013 
0014 # read
0015 tmpConf.read("panda_server.cfg")
0016 
0017 # get daemon section
0018 tmpDict = getattr(tmpConf, "daemon", {})
0019 
0020 # read configmap
0021 config_utils.load_config_map("daemon", tmpDict)
0022 
0023 # expand all values
0024 tmpSelf = sys.modules[__name__]
0025 expand_values(tmpSelf, tmpDict)
0026 
0027 # default values
0028 if "enable" not in tmpSelf.__dict__:
0029     tmpSelf.__dict__["enable"] = False