diff Mac/Modules/ctl/ctlscan.py @ 8083:7ace172c2521 legacy-trunk

Replaced addpack by handcrafted code to find the bgen stuff.
author Jack Jansen <jack.jansen@cwi.nl>
date Fri, 17 Apr 1998 14:07:56 +0000
parents 3740ff2ee053
children 11a1bad6df67
line wrap: on
line diff
--- a/Mac/Modules/ctl/ctlscan.py	Fri Apr 17 14:06:47 1998 +0000
+++ b/Mac/Modules/ctl/ctlscan.py	Fri Apr 17 14:07:56 1998 +0000
@@ -1,6 +1,8 @@
 # Scan <Controls.h>, generating ctlgen.py.
-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