commit a04b510395e956a81843200531acb7f2a6709b71
parent 6a833d9f98b619717da2f0e32d60a203b56361ce
Author: ThomasV <thomasv@electrum.org>
Date: Thu, 28 Jan 2016 14:43:12 +0100
fix: don't chmod config file on android
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/simple_config.py b/lib/simple_config.py
@@ -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)