diff --git a/Mopy/bash/bosh.py b/Mopy/bash/bosh.py index 18457ce..6eeff7b 100644 --- a/Mopy/bash/bosh.py +++ b/Mopy/bash/bosh.py @@ -10781,6 +10781,11 @@ def saveSettings(self, ini_settings): reComment = self.reComment reSection = self.reSection reSetting = self.reSetting + # Clear ReadOnly flag if set + cmd = r'attrib -R "%s" /S /D' % (self.path) + cmd = Encode(cmd) + ins, err = Popen(cmd, stdout=PIPE, stdin=PIPE, + startupinfo=startupinfo).communicate() # --Read init, write temp iniFile = self.path.open('r') tmpFile = self.path.temp.open('w')