def dstRoot(self): """ 导出路径的根目录 """ if self.__dstRoot is None: try: root = self.__cfgSect["paths"].readString("dstRoot") except: raise ConfigTagPathException("<paths>/<dstRoot>") self.__dstRoot = Path.realToExecutePath(root) return self.__dstRoot
def tplRoots(self): """ 模板文件路径列表 """ if self.__tlpRoots is None: self.__tlpRoots = [] try: roots = self.__cfgSect["paths"]["tplRoots"].readStrings("item") except: raise ConfigTagPathException("<paths>/<tplRoots>") for root in roots: self.__tlpRoots.append(Path.realToExecutePath(root)) return self.__tlpRoots
def syscodeSrcPluginRoot(self): """ 数据源插件(相对可执行文件的路径) """ root = self.__cfgSect["paths"].readString("srcPluginRoot") return script2sys(Path.realToExecutePath(root))
def __getFullPath(rpath): path = Path.realToExecutePath(rpath) return sys2script(path)
def syscodeDstPluginRoot(self): root = self.__cfgSect["paths"].readString("dstPluginRoot") return script2sys(Path.realToExecutePath(root))