1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
5ë    hc@ssddlmZddlmZddlZddlZd„Zedƒd„Zd„Zd„Z    d    „Z
dS(
iÿÿÿÿ(tGlobalFunctions(tmylogNc    Csôtjƒ}xátjd||fƒD]Æ\}}}x´|D]¬}tjj||ƒ}|j|dƒ}|dt|ƒ!}|jdƒdkr—q<n|j    dƒ}|d}|d}|d
krÌq<n|jd    dƒ}t
|ƒq<Wq&WdS( Ns%s\%stit__init__is.tpyctpys\(RR( Rt
getAppPathtostwalktpathtjointreplacetlentfindtsplitt
__import__(    t    importDirtcurPathtroottdirstfilestfiletfileNamet curFileListtext((sQ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\GM\GMShell.pytImportCommandAlls ) 
 
 s GM\CommandscCsb|jdƒ}t|ƒdkr%dSx6|D].}t||ƒtkrKdSt||ƒ}q,W|S(Ns.i(RR tNonethasattrtTruetgetattr(t
curCallObjtcallNametcallListt curCallName((sQ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\GM\GMShell.pytParseNameGetObj5s cCs9t||ƒ}|dkrdSt|ƒtkr5dS|S(N(R"RtcallableR(RR((sQ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\GM\GMShell.pyt GetExecFuncHs  cCs€tjd|ƒ|jdgƒ}|s-gSg}|d}d|df}tt|ƒ}|dkr|||d|ƒn|S(Ns¿ç·þDBÊÕµ½×Ó·þGMÃüÁî: %st
cmdMsgListis%s.%st OnCrossDBExeci(RtdebugtgetR$tCommandsR(tmsgDataR%t dbAnswerListtcmdNameRtcallFunc((sQ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\GM\GMShell.pytClientGMCommandTs
 cCsˆtjd|ƒ|sgSg}yYt|ƒ}|d}d|df}tt|ƒ}|dkry||d|ƒnWnnX|S(NsDBÊÕµ½GameServerµÄGMÃüÁî: %sis%s.%stOnDBExeci(RR'tevalR$R)R(tcmdMsgR+R%R,RR-((sQ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\GM\GMShell.pyt DBGMCommandas 
 ( tDBCommonRtCommonRR)RRR"R$R.R2(((sQ.\\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\PyMongoDB\GM\GMShell.pyt<module>s