Fix usage of local python-bitcoinlib

Previously was using the system-wide python-bitcoinlib, if it existed,
rather than the local copy that you check out in the README.
This commit is contained in:
Peter Todd 2015-11-20 16:23:01 -05:00
parent 16a2f93629
commit 63b5840257
No known key found for this signature in database
GPG Key ID: C085F21CE7F4B9DC

View File

@ -10,8 +10,9 @@
import os
import sys
# Add python-bitcoinlib to module search path:
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "python-bitcoinlib"))
# Add python-bitcoinlib to module search path, prior to any system-wide
# python-bitcoinlib.
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "python-bitcoinlib"))
import unittest