From a04b510395e956a81843200531acb7f2a6709b71 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 28 Jan 2016 14:43:12 +0100 Subject: [PATCH] fix: don't chmod config file on android --- lib/simple_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simple_config.py b/lib/simple_config.py index 2b79fdf2a..22aab0832 100644 --- 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)