]> granicus.if.org Git - python/commitdiff
Fixed the last two bgen-based modules to be buildable on OSX.
authorJack Jansen <jack.jansen@cwi.nl>
Mon, 5 Aug 2002 21:13:07 +0000 (21:13 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Mon, 5 Aug 2002 21:13:07 +0000 (21:13 +0000)
Mac/Modules/drag/dragscan.py
Mac/Modules/waste/wastescan.py

index 833fca1ec92a8734211ecb384c457ceec6c9b43f..1d62f6e70f4c76b6a4b5446cf1d924019c949174 100644 (file)
@@ -1,7 +1,7 @@
 # Scan <Drag.h>, generating draggen.py.
 import sys
 import os
-from bgenlocations import TOOLBOXDIR, BGENDIR
+from bgenlocations import TOOLBOXDIR, BGENDIR, INCLUDEDIR
 sys.path.append(BGENDIR)
 
 from scantools import Scanner
index 1950a62ca4145096461cabbc4cf834db894ca8f4..d2f367dd54309a2e2f53138ff7aec6e42a8d666e 100644 (file)
@@ -2,13 +2,14 @@
 
 import sys
 import os
-BGENDIR=os.path.join(sys.prefix, ':Tools:bgen:bgen')
+from bgenlocations import TOOLBOXDIR, BGENDIR
 sys.path.append(BGENDIR)
 from scantools import Scanner
-from bgenlocations import MWERKSDIR, TOOLBOXDIR
 
-#WASTEDIR=":::::Waste 1.3 Distribution:WASTE C/C++ Headers:"
-WASTEDIR=MWERKSDIR + 'MacOS Support:(Third Party Support):Waste 2.0 Distribution:C_C++ Headers:'
+WASTEDIR='/Applications/Metrowerks CodeWarrior 7.0/Metrowerks CodeWarrior/MacOS Support/(Third Party Support)/Waste 2.0 Distribution/C_C++ Headers/'
+               
+if not os.path.exists(WASTEDIR):
+       raise 'Error: not found: %s', WASTEDIR
 
 OBJECT = "TEHandle"
 SHORT = "waste"