diff options
Diffstat (limited to 'Mac/Modules/te')
-rw-r--r-- | Mac/Modules/te/TEmodule.c | 2 | ||||
-rw-r--r-- | Mac/Modules/te/tescan.py | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Mac/Modules/te/TEmodule.c b/Mac/Modules/te/TEmodule.c index 70891ff..1c7e4f4 100644 --- a/Mac/Modules/te/TEmodule.c +++ b/Mac/Modules/te/TEmodule.c @@ -217,7 +217,7 @@ static PyObject *TEObj_TEKey(_self, _args) { PyObject *_res = NULL; CharParameter key; - if (!PyArg_ParseTuple(_args, "c", + if (!PyArg_ParseTuple(_args, "h", &key)) return NULL; TEKey(key, diff --git a/Mac/Modules/te/tescan.py b/Mac/Modules/te/tescan.py index 8d919e8..0e537ab 100644 --- a/Mac/Modules/te/tescan.py +++ b/Mac/Modules/te/tescan.py @@ -1,7 +1,9 @@ # Scan an Apple header file, generating a Python file of generator calls. -import addpack -addpack.addpack(':tools:bgen:bgen') +import sys +import os +BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen') +sys.path.append(BGENDIR) from scantools import Scanner from bgenlocations import TOOLBOXDIR |