Feature: новая переменная cl_pass_path с полным путем до шаблона
master 3.7.3.2
root 1 year ago
parent 7610ec939c
commit 660ecc4116

@ -4868,6 +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_file", os.path.basename(nameFileConfig))
self.headerParams = None
#debug these templates:
@ -5117,6 +5118,7 @@ gettext -d cl_template "$*"
else:
return applyDir, True, crDirs
try:
self.objVar.Set("cl_pass_path", templateDirFile)
self.objVar.Set("cl_pass_file",
os.path.basename(os.path.dirname(templateDirFile)))
with open(templateDirFile) as FD:
@ -6658,6 +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_file", os.path.basename(nameFileConfig))
self.headerParams = None
filesApl = self.joinTemplate(path, nameFileConfig)

@ -41,4 +41,4 @@ class VariableClVer(ReadonlyVariable):
"""
Package version
"""
value = "3.7.3.1"
value = "3.7.3.2"

@ -160,6 +160,12 @@ class VariableClPassFile(Variable):
"""
class VariableClPassPath(Variable):
"""
Full path to current template
"""
class VariableClPassLocation(Variable):
"""
Текущая обрабатываемая локация

Loading…
Cancel
Save