1
0

manage exchange plugins, make sure ui doesn't stall while saving seed

and numerous other small fixes.
This commit is contained in:
qua-non
2014-03-11 00:18:12 +05:30
committed by ThomasV
parent 1bbb211671
commit 1179a4cf9e
7 changed files with 321 additions and 124 deletions

View File

@@ -142,6 +142,13 @@ def user_dir():
elif "LOCALAPPDATA" in os.environ:
return os.path.join(os.environ["LOCALAPPDATA"], "Electrum")
elif 'ANDROID_DATA' in os.environ:
try:
import jnius
env = jnius.autoclass('android.os.Environment')
_dir = env.getExternalStorageDirectory().getPath()
return _dir + '/electrum/'
except ImportError:
pass
return "/sdcard/electrum/"
else:
#raise Exception("No home directory found in environment variables.")