Browse Source

Bugfix cl_name in root templates.

develop
Самоукин Алексей 11 years ago
parent
commit
c7affe7e3c
  1. 26
      pym/cl_template.py

26
pym/cl_template.py

@ -3804,22 +3804,26 @@ re.M|re.S)
else:
flagDir = False
templatePath = dirFile
if os.path.isfile(templatePath) and\
self.getFileType(templatePath) != "bin":
textTemplate = open(templatePath).read()
if textTemplate:
headerLine = self.getHeaderText(textTemplate)
if headerLine:
if not "cl_name==" in headerLine:
if os.path.isfile(templatePath):
if self.getFileType(templatePath) == "bin":
skipTemplates.append(dirFile)
else:
textTemplate = open(templatePath).read()
if textTemplate:
headerLine = self.getHeaderText(textTemplate)
if headerLine:
if not "cl_name==" in headerLine:
if flagDir:
skipDirs.append(dirFile)
else:
skipTemplates.append(dirFile)
else:
if flagDir:
skipDirs.append(dirFile)
else:
skipTemplates.append(dirFile)
else:
if flagDir:
skipDirs.append(dirFile)
else:
skipTemplates.append(dirFile)
skipTemplates.append(dirFile)
if skipDirs or skipTemplates:
# print warning
from cl_print import color_print

Loading…
Cancel
Save