1
0

fix -P option

This commit is contained in:
ThomasV
2015-05-30 06:56:45 +02:00
parent 6201133c48
commit 701527df20
2 changed files with 4 additions and 4 deletions

View File

@@ -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)