Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
    def syscodeSrcPluginRoot(self):
        """
		数据源插件(相对可执行文件的路径)
		"""
        root = self.__cfgSect["paths"].readString("srcPluginRoot")
        return script2sys(Path.realToExecutePath(root))
Esempio n. 4
0
 def __getFullPath(rpath):
     path = Path.realToExecutePath(rpath)
     return sys2script(path)
Esempio n. 5
0
 def syscodeDstPluginRoot(self):
     root = self.__cfgSect["paths"].readString("dstPluginRoot")
     return script2sys(Path.realToExecutePath(root))