Fix read env files.

develop
Самоукин Алексей 14 years ago
parent 96312fdf54
commit fb8c80e1ea

@ -4959,14 +4959,14 @@ class templateClt(scanDirectoryClt, template):
nameFileConfig.split("/")))
# Записываем в переменную обрабатываемый файл
self.objVar.Set("cl_pass_file",nameFileConfig)
# Пишем время модификации *.env файлов
if nameFileConfig.endswith(".env"):
nameEnvFile = os.path.split(nameFileConfig)[1]
self.functObj.timeConfigsIni[nameEnvFile] = float(time.time())
filesApl = self.joinTemplate(path, nameFileConfig)
if self.getError():
return False
if filesApl:
# Пишем время модификации *.env файлов
if filesApl[0].endswith(".env"):
nameEnvFile = os.path.basename(filesApl[0])
self.functObj.timeConfigsIni[nameEnvFile] = float(time.time())
self.filesApply += filesApl
# Настоящее имя конфигурационного файла
nameFileConfig = filesApl[0]

Loading…
Cancel
Save