[spesmilo/electrum] How to manage two wallets using JSON RPC? (#3764)

I found out why this isn’t working for me. It’s this line:

https://github.com/spesmilo/electrum/blob/master/electrum/simple_config.py#L244

For some reason `self.get(‘cwd’)` returns `None` for me which is why `os.path.join` gives me a type error. This happens even though in **run_electrum.py** `config_options[‘cwd’] = os.getcwd()` is executed. I was able to make it work by changing the line to to:

«`python
if self.get(‘wallet_path’):
return self.get(‘wallet_path’)
«`

@SomberNight Do you know why this is happening? This makes no sense to me. If electrum tries to combine the path with `cwd` every time your example shouldn’t work. Do you have a suggestion on what to do here?