tfix: don't chmod config file on android - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit a04b510395e956a81843200531acb7f2a6709b71
DIR parent 6a833d9f98b619717da2f0e32d60a203b56361ce
HTML Author: ThomasV <thomasv@electrum.org>
Date: Thu, 28 Jan 2016 14:43:12 +0100
fix: don't chmod config file on android
Diffstat:
M lib/simple_config.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/lib/simple_config.py b/lib/simple_config.py
t@@ -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)