change permission after write
This commit is contained in:
parent
208e184026
commit
f83081fb06
@ -31,7 +31,7 @@ from fenrirscreenreader.core.eventData import fenrirEventType
|
|||||||
import time
|
import time
|
||||||
import select
|
import select
|
||||||
import socket
|
import socket
|
||||||
import os, os.path, sys, stat
|
import os, os.path
|
||||||
|
|
||||||
class remoteManager():
|
class remoteManager():
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
# By Chrys, Storm Dragon, and contributers.
|
# By Chrys, Storm Dragon, and contributers.
|
||||||
|
|
||||||
import os, inspect
|
import os, inspect
|
||||||
|
|
||||||
currentdir = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe()))))
|
currentdir = os.path.dirname(os.path.realpath(os.path.abspath(inspect.getfile(inspect.currentframe()))))
|
||||||
fenrirPath = os.path.dirname(currentdir)
|
fenrirPath = os.path.dirname(currentdir)
|
||||||
|
|
||||||
@ -91,6 +92,8 @@ class settingsManager():
|
|||||||
|
|
||||||
configFile = open(settingConfigPath, 'w')
|
configFile = open(settingConfigPath, 'w')
|
||||||
self.env['settings'].write(configFile)
|
self.env['settings'].write(configFile)
|
||||||
|
configFile.close()
|
||||||
|
os.chmod(settingConfigPath, 0o666)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.env['runtime']['debug'].writeDebugOut('saveSettings: save settingsfile:' + settingConfigPath + 'failed. Error:' + str(e), debug.debugLevel.ERROR)
|
self.env['runtime']['debug'].writeDebugOut('saveSettings: save settingsfile:' + settingConfigPath + 'failed. Error:' + str(e), debug.debugLevel.ERROR)
|
||||||
def setSetting(self, section, setting, value):
|
def setSetting(self, section, setting, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user