From c0475ee0e5d5857e61904f9225668e00a37c3b4a Mon Sep 17 00:00:00 2001 From: curly60e <55191248+curly60e@users.noreply.github.com> Date: Wed, 6 May 2020 17:04:20 -0300 Subject: [PATCH] Input changes for Path I added a line that allow to put the path to Bitcoin-cli. --- Python-BlockClock.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Python-BlockClock.py b/Python-BlockClock.py index 520fdfd..83182b5 100644 --- a/Python-BlockClock.py +++ b/Python-BlockClock.py @@ -1,14 +1,18 @@ import os import time as t + def getblock(): #get access to bitcoin-cli with the command getblockchaininfo - bitcoincli = "PUT YOUR BITCOIN-CLI PATH WITH THE ARGUMENT 'getblockchaininfo'" - os.system(bitcoincli) - + bitcoincli = " getblockchaininfo" #get blockchain information + os.system(path + bitcoincli) + def clear(): #clear the screen os.system('cls' if os.name=='nt' else 'clear') - - + +clear() +path = input("Path to your Bitcoin-cli: ") + + while True: #Loop clear() #call clear function that clears the screen getblock() #call getblock function