change permission after write

This commit is contained in:
chrys 2018-09-08 23:15:18 +02:00
parent 208e184026
commit f83081fb06
2 changed files with 4 additions and 1 deletions

View File

@ -31,7 +31,7 @@ from fenrirscreenreader.core.eventData import fenrirEventType
import time
import select
import socket
import os, os.path, sys, stat
import os, os.path
class remoteManager():
def __init__(self):

View File

@ -5,6 +5,7 @@
# By Chrys, Storm Dragon, and contributers.
import os, inspect
currentdir = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe()))))
fenrirPath = os.path.dirname(currentdir)
@ -91,6 +92,8 @@ class settingsManager():
configFile = open(settingConfigPath, 'w')
self.env['settings'].write(configFile)
configFile.close()
os.chmod(settingConfigPath, 0o666)
except Exception as e:
self.env['runtime']['debug'].writeDebugOut('saveSettings: save settingsfile:' + settingConfigPath + 'failed. Error:' + str(e), debug.debugLevel.ERROR)
def setSetting(self, section, setting, value):