From ce8ba928172071dc89cc1fc0520f840211bbfa0d Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Fri, 14 Apr 2017 15:22:25 -0400 Subject: Python interface API will need to be cryptech.py11 for installation. --- scripts/py11-test.py | 4 ++-- scripts/time-signature.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'scripts') diff --git a/scripts/py11-test.py b/scripts/py11-test.py index 04372ec..87af29d 100644 --- a/scripts/py11-test.py +++ b/scripts/py11-test.py @@ -1,7 +1,7 @@ # Initial test script using py11. About 2/3 testing PKCS #11, 1/3 # doodles figuring out what else py11 should be automating for us. -from py11 import * +from cryptech.py11 import * from struct import pack, unpack def show_token(i, t, strip = True): @@ -77,7 +77,7 @@ elif False: else: print "Using our own pseudo-MUTEXes" - from py11.mutex import MutexDB + from cryptech.py11.mutex import MutexDB mdb = MutexDB() p11.C_Initialize(0, mdb.create, mdb.destroy, mdb.lock, mdb.unlock) diff --git a/scripts/time-signature.py b/scripts/time-signature.py index eef646d..99ec718 100755 --- a/scripts/time-signature.py +++ b/scripts/time-signature.py @@ -15,12 +15,12 @@ from Crypto.Hash.SHA384 import SHA384Hash as SHA384 from Crypto.Hash.SHA512 import SHA512Hash as SHA512 try: - from py11 import * + from cryptech.py11 import * except ImportError: - # Kludge to let us run script from repo without installing py11 + # Kludge to let us run script from repo without installing cryptech.py11 from os.path import dirname, abspath sys.path.append(dirname(dirname(abspath(sys.argv[0])))) - from py11 import * + from cryptech.py11 import * if platform.system() == "Darwin": -- cgit v1.2.3