electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 701527df2075d9ec468b4b3a1da9ee6cd6aadbf9
parent 6201133c48fe605569c37f4e862829945bf5ff50
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 30 May 2015 06:56:45 +0200

fix -P option

Diffstat:
Melectrum | 6+++---
Mlib/commands.py | 2+-
2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/electrum b/electrum @@ -402,9 +402,6 @@ if __name__ == '__main__': parser = get_parser(run_gui, run_daemon, run_cmdline) args = parser.parse_args() - if args.portable and args.wallet_path is None: - args.electrum_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum_data') - # config is an object passed to the various constructors (wallet, interface, gui) if is_android: config_options = { @@ -421,6 +418,9 @@ if __name__ == '__main__': if config_options.get('server'): config_options['auto_connect'] = False + if config_options.get('portable') and config_options.get('wallet_path') is None: + config_options['electrum_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum_data') + set_verbosity(config_options.get('verbose')) config = SimpleConfig(config_options) diff --git a/lib/commands.py b/lib/commands.py @@ -173,7 +173,7 @@ def get_parser(run_gui, run_daemon, run_cmdline): add_offline_option(parser_gui) add_wallet_options(parser_gui) # daemon - parser_daemon = subparsers.add_parser('daemon', help="Run Daemon") + parser_daemon = subparsers.add_parser('daemon', parents=[parent_parser, conn_parser], help="Run Daemon") parser_daemon.add_argument("subcommand", choices=['start', 'status', 'stop']) parser_daemon.set_defaults(func=run_daemon) # create a parser for each command