diff --git a/pym/cl_template.py b/pym/cl_template.py index 3647369..5020d36 100644 --- a/pym/cl_template.py +++ b/pym/cl_template.py @@ -4052,9 +4052,9 @@ variable 'cl-name'")) templateDirFile) return ("", False, []) # Новый путь к директории - applyDir = os.path.join(path, nameDir) + applyDir = pathJoin(path, nameDir) else: - applyDir = os.path.join(path, os.path.split(applyDir)[1]) + applyDir = pathJoin(path, os.path.split(applyDir)[1]) # Фильтрация шаблонов по названию директории realPath = os.path.join("/",applyDir.partition(self._baseDir)[2]) @@ -4270,9 +4270,9 @@ variable 'cl-name'")) nameFileTemplate) return ([], False) # Новый путь к оригинальному файлу - pathOldFile = os.path.join(path,nameFile) + pathOldFile = pathJoin(path,nameFile) else: - pathOldFile = os.path.join(path,os.path.split(nameFileConfig)[1]) + pathOldFile = pathJoin(path,os.path.split(nameFileConfig)[1]) applyFiles = [pathOldFile] # Фильтрация шаблонов по названию файла realPath = os.path.join("/",pathOldFile.partition(self._baseDir)[2])