Added patch for config file.
Added patch for config file, config file will be removed in next release.
This commit is contained in:
parent
7263573242
commit
0f8c57f552
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
import json
|
import json, os
|
||||||
from bitcoinrpc.authproxy import AuthServiceProxy
|
from bitcoinrpc.authproxy import AuthServiceProxy
|
||||||
from lbryschema.decode import smart_decode
|
from lbryschema.decode import smart_decode
|
||||||
from flask import Flask, url_for
|
from flask import Flask, url_for
|
||||||
|
@ -8,7 +8,7 @@ app = Flask(__name__)
|
||||||
|
|
||||||
|
|
||||||
def get_lbrycrdd_connection_details():
|
def get_lbrycrdd_connection_details():
|
||||||
with open('config.json', 'r') as f:
|
with open(os.path.dirname(os.path.realpath(__file__))+'/config.json', 'r') as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
rpc_user = config['rpc_user']
|
rpc_user = config['rpc_user']
|
||||||
rpc_pass = config['rpc_password']
|
rpc_pass = config['rpc_password']
|
||||||
|
|
Loading…
Reference in a new issue