diff --git a/pym/cl_template.py b/pym/cl_template.py index f0cad39..016e9e7 100644 --- a/pym/cl_template.py +++ b/pym/cl_template.py @@ -4983,6 +4983,7 @@ class iniParser(_error, templateFormat): return textIni def writeIniFile(self, txtConfig): + import fcntl if not os.path.exists(self.iniFile): try: # Создание файла @@ -4997,6 +4998,7 @@ class iniParser(_error, templateFormat): except: self.setError(_("Unable to open file") + ": " + self.iniFile) return False + fcntl.flock(FD.fileno(), fcntl.LOCK_EX) FD.truncate(0) FD.seek(0) FD.write(txtConfig)