1
0

fix: pass cwd with config_options

This commit is contained in:
ThomasV
2016-02-24 16:57:58 +01:00
parent 9a454b60ce
commit 73822e8ec2
2 changed files with 4 additions and 4 deletions

View File

@@ -286,7 +286,6 @@ if __name__ == '__main__':
'verbose': True,
'cmd': 'gui',
'gui': 'kivy',
#'auto_connect': True,
}
else:
config_options = args.__dict__
@@ -296,6 +295,8 @@ if __name__ == '__main__':
if config_options.get('server'):
config_options['auto_connect'] = False
config_options['cwd'] = os.getcwd()
if config_options.get('portable'):
config_options['electrum_path'] = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'electrum_data')