|
@ -34,8 +34,10 @@ except ImportError: |
|
|
sys.exit("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'") |
|
|
sys.exit("Error: AES does not seem to be installed. Try 'sudo pip install slowaes'") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
is_android = 'ANDROID_DATA' in os.environ |
|
|
|
|
|
|
|
|
# load local module as electrum |
|
|
# load local module as electrum |
|
|
if os.path.exists("lib"): |
|
|
if os.path.exists("lib") or is_android: |
|
|
import imp |
|
|
import imp |
|
|
fp, pathname, description = imp.find_module('lib') |
|
|
fp, pathname, description = imp.find_module('lib') |
|
|
imp.load_module('electrum', fp, pathname, description) |
|
|
imp.load_module('electrum', fp, pathname, description) |
|
@ -89,7 +91,7 @@ if __name__ == '__main__': |
|
|
set_verbosity(options.verbose) |
|
|
set_verbosity(options.verbose) |
|
|
|
|
|
|
|
|
# config is an object passed to the various constructors (wallet, interface, gui) |
|
|
# config is an object passed to the various constructors (wallet, interface, gui) |
|
|
if 'ANDROID_DATA' in os.environ: |
|
|
if is_android: |
|
|
config_options = {'wallet_path':"/sdcard/electrum.dat", 'portable':True, 'verbose':True, 'gui':'android'} |
|
|
config_options = {'wallet_path':"/sdcard/electrum.dat", 'portable':True, 'verbose':True, 'gui':'android'} |
|
|
else: |
|
|
else: |
|
|
config_options = eval(str(options)) |
|
|
config_options = eval(str(options)) |
|
|