env path for bitcoind for CC testing

This commit is contained in:
scgbckbone 2025-10-22 01:02:46 +02:00
parent 30946eb1aa
commit 7c8aceb753

View File

@ -11,7 +11,10 @@ from ckcc.protocol import CCProtocolPacker
def find_bitcoind():
# search for the binary we need
# - should be in the path really
return "/home/scg/Downloads/bitcoin-29.0/bin/bitcoind"
env_path = os.environ.get("CC_TEST_BITCOIND", None)
if env_path:
return env_path
easy = shutil.which('bitcoind')
if easy:
return easy