diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1998-04-17 14:07:56 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1998-04-17 14:07:56 (GMT) |
commit | 0c4d947eacfb360515a5ba58f1a6b96dddc6d265 (patch) | |
tree | dd1b4a51739c70ecff1ad1122346814108a4eb1f /Mac/Modules/win | |
parent | b36b83011a4799bc8fc6decbe4482c5f21608e1e (diff) | |
download | cpython-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/win')
-rw-r--r-- | Mac/Modules/win/winscan.py | 6 | ||||
-rw-r--r-- | Mac/Modules/win/winsupport.py | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py index ae0462f..f15fb16 100644 --- a/Mac/Modules/win/winscan.py +++ b/Mac/Modules/win/winscan.py @@ -1,6 +1,8 @@ # 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 bgenlocations import TOOLBOXDIR from scantools import Scanner diff --git a/Mac/Modules/win/winsupport.py b/Mac/Modules/win/winsupport.py index 001a4a4..c7e1f7a 100644 --- a/Mac/Modules/win/winsupport.py +++ b/Mac/Modules/win/winsupport.py @@ -5,9 +5,6 @@ import string -import addpack -addpack.addpack(':Tools:bgen:bgen') - # Declarations that change for each manager MACHEADERFILE = 'Windows.h' # The Apple header file MODNAME = 'Win' # The name of the module |