We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca1ef88 commit e080ec2Copy full SHA for e080ec2
bitcoin/rpc.py
@@ -162,7 +162,7 @@ def __init__(self,
162
service_url = ('%s://%s:%d' %
163
('http', conf['rpchost'], conf['rpcport']))
164
165
- cookie_dir = os.path.dirname(btc_conf_file)
+ cookie_dir = conf.get('datadir', os.path.dirname(btc_conf_file))
166
if bitcoin.params.NAME != "mainnet":
167
cookie_dir = os.path.join(cookie_dir, bitcoin.params.NAME)
168
cookie_file = os.path.join(cookie_dir, ".cookie")
0 commit comments