manage exchange plugins, make sure ui doesn't stall while saving seed
and numerous other small fixes.
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user