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