| #!/usr/bin/python  | 
| # -*- coding: GBK -*-  | 
|   | 
| ##@package Help  | 
| # °ïÖú²éѯ  | 
| #  | 
| # @author eggxp  | 
| # @date 2010-4-28  | 
| # @version 1.0  | 
| #  | 
| # ÐÞ¸Äʱ¼ä ÐÞ¸ÄÈË ÐÞ¸ÄÄÚÈÝ  | 
| # VER = "2010-05-12 18:30" zhengyang Ìí¼Ó×¢ÊÍ  | 
| #  | 
| # Ä£¿éÏêϸ˵Ã÷  | 
| #×÷Õß : eggxp  | 
|   | 
| import GameWorld  | 
| import os  | 
| import ChConfig  | 
|   | 
| #°ïÖúÃüÁî  | 
| ## °ïÖúÃüÁî Èë¿Ú  | 
| #  @param playerList ÎÞÒâÒå  | 
| #  @return None  | 
| #  @remarks º¯ÊýÏêϸ˵Ã÷.  | 
| def OnExec(playerList):  | 
|     #µ¼ÈëËùÓÐûÓÐÈÎÎñµÄXMLÊý¾Ý  | 
|     path = ChConfig.GetAppPath() + "Script\ServerCMD\CMDS"  | 
|     gmList = list()  | 
|     for root, dirs, files in os.walk(path):  | 
|         for file in files:  | 
|             fileName = os.path.join(root, file)  | 
|             fileName = fileName.replace(path, "")  | 
|             if fileName.find("__init__") >= 0:  | 
|                 continue  | 
|               | 
|             curFileList = fileName.split(".")  | 
|               | 
|             ext = curFileList[1]  | 
|             if ext not in ChConfig.TYPE_Load_Module_Ext:  | 
|                 continue  | 
|             gmList.append(curFileList[0])  | 
|               | 
|     gmList.sort()  | 
|     for gm in gmList:  | 
|         GameWorld.Log(gm) |