CHMOD files

This commit is contained in:
Ruud
2012-01-24 20:30:03 +01:00
parent 0614f8f2a8
commit ce8c2ada50
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -78,6 +78,7 @@ class Plugin(object):
f = open(path, 'w' if not binary else 'wb')
f.write(content)
f.close()
os.chmod(path, Env.getPermission('file'))
except Exception, e:
log.error('Unable writing to file "%s": %s' % (path, e))