summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/waste
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1998-04-17 14:07:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1998-04-17 14:07:56 (GMT)
commit0c4d947eacfb360515a5ba58f1a6b96dddc6d265 (patch)
treedd1b4a51739c70ecff1ad1122346814108a4eb1f /Mac/Modules/waste
parentb36b83011a4799bc8fc6decbe4482c5f21608e1e (diff)
downloadcpython-0c4d947eacfb360515a5ba58f1a6b96dddc6d265.zip
cpython-0c4d947eacfb360515a5ba58f1a6b96dddc6d265.tar.gz
cpython-0c4d947eacfb360515a5ba58f1a6b96dddc6d265.tar.bz2
Replaced addpack by handcrafted code to find the bgen stuff.
Diffstat (limited to 'Mac/Modules/waste')
-rw-r--r--Mac/Modules/waste/wastescan.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Mac/Modules/waste/wastescan.py b/Mac/Modules/waste/wastescan.py
index ee9fa41..25f8d5d 100644
--- a/Mac/Modules/waste/wastescan.py
+++ b/Mac/Modules/waste/wastescan.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_PreUH3
from bgenlocations import MWERKSDIR, TOOLBOXDIR