diff options
Diffstat (limited to 'Mac/Modules/ae')
-rw-r--r-- | Mac/Modules/ae/aescan.py | 7 | ||||
-rw-r--r-- | Mac/Modules/ae/aesupport.py | 2 | ||||
-rw-r--r-- | Mac/Modules/ae/nsremote.py | 5 |
3 files changed, 4 insertions, 10 deletions
diff --git a/Mac/Modules/ae/aescan.py b/Mac/Modules/ae/aescan.py index 620a91c..c1f4251 100644 --- a/Mac/Modules/ae/aescan.py +++ b/Mac/Modules/ae/aescan.py @@ -1,15 +1,16 @@ # Scan AppleEvents.h header file, generate aegen.py and AppleEvents.py files. # Then run aesupport to generate AEmodule.c. -0# (Should learn how to tell the compiler to compile it as well.) +# (Should learn how to tell the compiler to compile it as well.) -import addpack -addpack.addpack(':Tools:bgen:bgen') import sys import os import string import regex import regsub import MacOS + +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/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index f2c947f..58af2df 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -3,8 +3,6 @@ # It execs the file aegen.py which contain the function definitions # (aegen.py was generated by aescan.py, scanning the <AppleEvents.h> header file). -import addpack -addpack.addpack(':Tools:bgen:bgen') from macsupport import * diff --git a/Mac/Modules/ae/nsremote.py b/Mac/Modules/ae/nsremote.py index cace374..d823216 100644 --- a/Mac/Modules/ae/nsremote.py +++ b/Mac/Modules/ae/nsremote.py @@ -11,13 +11,8 @@ Jack Jansen, CWI, January 1996. # be nicer to use the more "object oriented" standard OSA stuff, when it # is implemented in Netscape. # -import addpack import sys -addpack.addpack('Tools') -addpack.addpack('bgen') -addpack.addpack('ae') - import aetools import Standard_Suite import WWW_Suite |