Fix: убрано имя файла из переменной cl_pass_path
master 3.7.3.3
root 1 year ago
parent 660ecc4116
commit 3ac6c7fe3e

@ -4868,7 +4868,7 @@ gettext -d cl_template "$*"
nameFileConfig = "/".join((x.split("?")[0] for x in nameFileConfig.split("/")))
# Записываем в переменную обрабатываемый файл
self.objVar.Set("cl_pass_path", path)
self.objVar.Set("cl_pass_path", ''.join(path.rsplit('/', 1)[0]))
self.objVar.Set("cl_pass_file", os.path.basename(nameFileConfig))
self.headerParams = None
#debug these templates:
@ -5118,7 +5118,7 @@ gettext -d cl_template "$*"
else:
return applyDir, True, crDirs
try:
self.objVar.Set("cl_pass_path", templateDirFile)
self.objVar.Set("cl_pass_path", ''.join(templateDirFile.rsplit('/', 1)[0]))
self.objVar.Set("cl_pass_file",
os.path.basename(os.path.dirname(templateDirFile)))
with open(templateDirFile) as FD:
@ -6660,7 +6660,7 @@ class templateClt(scanDirectoryClt, Template):
# файл в системе без условий
nameFileConfig = "/".join((x.split("?")[0] for x in nameFileConfig.split("/")))
# Записываем в переменную обрабатываемый файл
self.objVar.Set("cl_pass_path", path)
self.objVar.Set("cl_pass_path", ''.join(path.rsplit('/', 1)[0]))
self.objVar.Set("cl_pass_file", os.path.basename(nameFileConfig))
self.headerParams = None
filesApl = self.joinTemplate(path, nameFileConfig)

Loading…
Cancel
Save