Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Config file for the Optech Taproot workshop

[path]
# Set this to the source directory for your Optech Taproot Bitcoin Core
# eg SOURCE_DIRECTORY=/Users/Optech/bitcoin
SOURCE_DIRECTORY=
21 changes: 12 additions & 9 deletions util.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
# Enter your source directory between the quotes here
SOURCE_DIRECTORY = ''
import argparse
import configparser
import os
import sys

# Read configuration from config.ini
config = configparser.ConfigParser()
configfile = os.path.abspath(os.path.dirname(__file__)) + "/config.ini"
config.read_file(open(configfile, encoding="utf8"))

SOURCE_DIRECTORY = config["path"]["SOURCE_DIRECTORY"]

assert not SOURCE_DIRECTORY == '', 'SOURCE_DIRECTORY not configured'

print("Source directory configured as {}".format(SOURCE_DIRECTORY))

import sys
# Import TestFramework
sys.path.insert(0, SOURCE_DIRECTORY + '/test/functional')

#############################################################################

import argparse
import os

from test_framework.test_framework import BitcoinTestFramework

# TestWrapper utility class.
Expand Down