mirror of
https://github.com/monero-project/monero.git
synced 2025-05-08 07:54:58 -04:00
python-rpc: add console.py
It allows one to connect to a running daemon or wallet, and use its RPC API from python. Usage: python -i console.py <port> It will detect whether it's talking to a daemon or wallet and initialize itself accordingly.
This commit is contained in:
parent
22b644f47e
commit
c7bfdc3566
4 changed files with 66 additions and 1 deletions
|
@ -60,7 +60,7 @@ try:
|
|||
PYTHONPATH = os.environ['PYTHONPATH'] if 'PYTHONPATH' in os.environ else ''
|
||||
if len(PYTHONPATH) > 0:
|
||||
PYTHONPATH += ':'
|
||||
PYTHONPATH += '../../utils/python-rpc'
|
||||
PYTHONPATH += srcdir + '/../../utils/python-rpc'
|
||||
os.environ['PYTHONPATH'] = PYTHONPATH
|
||||
for i in range(len(command_lines)):
|
||||
#print('Running: ' + str(command_lines[i]))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue