cehua_ZWJ
2019-01-30 6afaa4408f4e09e3e95dbd92f0d1cd5a1fb2942b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
í[\c@sdZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ia
ia da iaidd6Zd„Zd„Zed„Zd„Zd    „Zd
„Zed „Zd „Zd „Zed„Zd„ZdS(sVersion = 2017-07-03 20:00iÿÿÿÿNs\Config\DBPlatformNum.txtt DBPlatformNumcCs
t|ƒS(N(t__DoLogic_GetConfig(tkey((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt GetChConfig:scCs t|tƒS(N(RtTrue(R((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetEvalChConfigBscCs’tjƒjtjƒr"tƒntj|ƒr9t|StsIt    ƒnt
||ƒtj|ƒrmt|Stj d|ƒt d|ƒ‚dS(NsÎÞ·¨»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s, Å׳ö( t    GameWorldt GetGameWorldtGetGameWorldDictByKeyt ShareDefinet Def_Notify_WorldKey_ReloadConfigtClearAllConfigt AllChConfigthas_keytGeneralProgrammetReadConfigData_GeneralProgrammetReadConfigDatatLogt    Exception(RtneedEval((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRJs
 
 cCs`iaiatjƒdaiatjƒt    j
ƒt j dƒt j ƒjtjdƒdS(NtMapServer_Reload_ChConfigi(R RtFormulaControltClearCompileFormulaDisttNonetPyMongoDataServerConfigt DBAllChConfigt    MapConfigt ClearConfigt
PyMapTabletClearPyMapTableRRRtSetGameWorldDictR    R
(((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyR ks
 
 
 cCs_tj|ƒ}|s9tjd|ƒtd|ƒ‚ntjƒddd|d}tjj    |ƒs©tjd||d|fƒtd||d|fƒ‚nt
|dƒ}|j ƒ}|j ƒ|r;yt |ƒ}Wn=tk
r#}tjd|||fƒtd    |ƒ‚nXtji||6ƒn tjit|d
d ƒ|6ƒdS( Ns×ܸÙÖÐδ·¢ÏÖ¹¦ÄÜÃû = %ss\tMapServerConfigs%s.txtisδ·¢ÏÖÄ¿±êÎļþ = %s,%s,%strs5»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s¶Áȡʧ°Ü,ÎÞ·¨½âÎöÔ­Òò:%s, Å׳ö,%ss»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s¶Áȡʧ°Üt ReadChConfigteval(RtgetRRRtChConfigt
GetAppPathtostpathtisfiletopentreadtcloseR"t BaseExceptionR tupdatetcompile(tfileNameRt curFileListtcurPathtfiletstrMsgtresultte((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyR†s(   
 cCsètjƒdd}tjj|ƒsJtjd|ƒtd|ƒ‚nt|dƒ}g|j    ƒD]}|j
dƒd ^qf}|j ƒ|sªtjd|ƒdS|j dƒx*|D]"}t ji|d    |d6ƒq¾WdS(
Ns\s$MapServerConfig\GeneralProgramme.txtsÎÞ·¨·¢ÏÖ×ܸ٠= %sR s    is###×ܸÙΪ¿Õ = %sii(R$R%R&R'R(RRRR)t    readlinestsplitR+tpopRR-(R1R2tlinetdatetdateList((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRºs,
   cCsÅtstjƒd}tjj|ƒsLtjd|ƒtd|ƒ‚nt    j    ƒatj
|ƒtj dt |ƒƒntj ||ƒs¬tjd||fƒdStj|||ƒ}|S(Ns\PyMongoDataServer.inisÎÞ·¨ÕÒµ½Îļþ = %ssReload dbAPPath=%ss5PyMongoDataServer.iniÕÒ²»µ½ÅäÖÃ: section=%s,option=%st(RR$t    GetDBPathR&R'R(RRRt ConfigParserR*tDebugLogtstrt
has_optiontErrLogR#(tsectiontoptiontrawtdbAPPathtstrParam((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetPyMongoConfigÞs  cCs
t|ƒS(N(t__DoLogic_GetDBConfig(R((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt GetDBConfigóscCs t|tƒS(N(RIR(R((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pytGetDBEvalChConfigôscCs¢tjƒjtjƒr"tƒntj|ƒr9t|S|tkrZtj    d|ƒdSt
j ƒt|}t |||ƒ}|sŠdStj i||6ƒ|S(NsDBÅäÖÃÖÐδ·¢ÏÖKeyÎļþ = %s(RRRR    R
R RR tDef_DBCfgFilePathRR$R=t__ReadConfigDataExR-(RRtfilePathtretData((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRIús
 cCsÉtjj|ƒs6tjd|ƒtd|ƒ‚nt|dƒ}|jƒ}|jƒ|rµyt    |ƒ}Wn=t
k
r°}tjd|||fƒtd|ƒ‚nX|St |ddƒSdS(Nsδ·¢ÏÖÄ¿±êÎļþ = %sR s6»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s ¶Áȡʧ°Ü,ÎÞ·¨½âÎöÔ­Òò:%s, Å׳ö,%ss»ñÈ¡ÅäÖÃÐÅÏ¢Key = %s ¶Áȡʧ°ÜR!R"( R&R'R(RRRR)R*R+R"R,R.(R/RNRR2R3R4R5((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyRMs 
(t__doc__R$R&Rtmd5RR>R    RRR RRRRRLRRtFalseRR RRRHRJRKRIRM(((seE:\SnxxServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\ReadChConfig.pyt<module>s4         
         !        4    $