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
|
||||
# -*- coding: utf-8 -*-
|
||||
import json
|
||||
import json, os
|
||||
from bitcoinrpc.authproxy import AuthServiceProxy
|
||||
from lbryschema.decode import smart_decode
|
||||
from flask import Flask, url_for
|
||||
|
@ -8,7 +8,7 @@ app = Flask(__name__)
|
|||
|
||||
|
||||
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)
|
||||
rpc_user = config['rpc_user']
|
||||
rpc_pass = config['rpc_password']
|
||||
|
@ -56,4 +56,4 @@ if __name__ == '__main__':
|
|||
app.run(host='127.0.0.1')
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue