| | |
| | | # @param option: 配置项名
|
| | | # @return
|
| | | # @remarks \db\PyMongoDataServer\PyMongoDataServer.ini配置读取
|
| | | def GetPyMongoConfig(section, option, raw=False):
|
| | | def GetPyMongoConfig(section, option, raw=False, defaultValue=None, isLog=True):
|
| | | global PyMongoDataServerConfig
|
| | |
|
| | | if not PyMongoDataServerConfig:
|
| | |
| | | GameWorld.DebugLog("Reload dbAPPath=%s" % str(dbAPPath))
|
| | |
|
| | | if not PyMongoDataServerConfig.has_option(section, option):
|
| | | GameWorld.ErrLog("PyMongoDataServer.ini找不到配置: section=%s,option=%s" % (section, option))
|
| | | if defaultValue != None:
|
| | | return defaultValue
|
| | | if isLog:
|
| | | GameWorld.ErrLog("PyMongoDataServer.ini找不到配置: section=%s,option=%s" % (section, option))
|
| | | return ""
|
| | |
|
| | | strParam = PyMongoDataServerConfig.get(section, option, raw)
|