fix: don't chmod config file on android

This commit is contained in:
ThomasV 2016-01-28 14:43:12 +01:00
parent 6a833d9f98
commit a04b510395
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class SimpleConfig(object):
f = open(path, "w")
f.write(s)
f.close()
if self.get('gui') != 'android':
if 'ANDROID_DATA' not in os.environ:
import stat
os.chmod(path, stat.S_IREAD | stat.S_IWRITE)