Add support of comments in .calculate_directory files

master3.3
Mike Hiretsky 12 years ago
parent 87dc36b264
commit 5a4e17549f

@ -4205,7 +4205,11 @@ re.M|re.S)
return (applyDir, True, crDirs)
try:
FD = open(templateDirFile)
textTemplate = FD.readline()
textTemplate = FD.readline().rstrip()
buf = textTemplate
while buf and textTemplate.endswith('\\'):
buf = FD.readline()
textTemplate = "%s %s"%(textTemplate[:-1],buf.rstrip())
FD.close()
except:
self.setError(_("Failed to open the template") + ": " +\

Loading…
Cancel
Save