fix: don't chmod config file on android
This commit is contained in:
parent
6a833d9f98
commit
a04b510395
@ -131,7 +131,7 @@ class SimpleConfig(object):
|
|||||||
f = open(path, "w")
|
f = open(path, "w")
|
||||||
f.write(s)
|
f.write(s)
|
||||||
f.close()
|
f.close()
|
||||||
if self.get('gui') != 'android':
|
if 'ANDROID_DATA' not in os.environ:
|
||||||
import stat
|
import stat
|
||||||
os.chmod(path, stat.S_IREAD | stat.S_IWRITE)
|
os.chmod(path, stat.S_IREAD | stat.S_IWRITE)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user