ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -32,15 +32,6 @@
    #初始化python
    return
#调用该函数时,C++已经设置好区服,如果改变区服需重启
#在该文件调用此函数为了减少import带来的影响
def StartDB(tick):
    #初始化数据库, 恢复备档(按区服记录), 加载静态表
    from PyMongoDB import PyMongoMain
    PyMongoMain.StartDB()
    return
#---------------------------------------------------------------------
##获得MapServer脚本路径
# @param 无参数
@@ -54,7 +45,12 @@
# @param 无参数
# @return 返回值当前的DB路径
def GetDBPath():
    return MapServerPath.split("ZoneServerGroup")[0] + "ZoneServerGroup\\map1_8G\\MapServer\\MapServerData\\Script\\PyMongoDB"
    return MapServerPath + "Script\\PyMongoDB"
def GetServerConfigPath():
    ## 获取以Map为单服的服务器配置路径
    mapID = IPY_GameWorld.IPY_GameWorld().GetMapID()
    return MapServerPath + "ServerConfig\\m_%s" % mapID
def GetServerRootPath():
    ##获取服务器根路径