|
|
|
@ -4987,14 +4987,14 @@ class iniParser(_error, templateFormat):
|
|
|
|
|
if not os.path.exists(self.iniFile):
|
|
|
|
|
try:
|
|
|
|
|
# Создание файла
|
|
|
|
|
FD = open(self.iniFile, "w+")
|
|
|
|
|
FD = open(self.iniFile, "w")
|
|
|
|
|
os.chmod(self.iniFile, self.mode)
|
|
|
|
|
except:
|
|
|
|
|
self.setError(_("Unable to create file") + ": " + self.iniFile)
|
|
|
|
|
return False
|
|
|
|
|
else:
|
|
|
|
|
try:
|
|
|
|
|
FD = open(self.iniFile, "r+")
|
|
|
|
|
FD = open(self.iniFile, "w")
|
|
|
|
|
except:
|
|
|
|
|
self.setError(_("Unable to open file") + ": " + self.iniFile)
|
|
|
|
|
return False
|
|
|
|
|