summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/carbonevt/CarbonEvtsupport.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2001-11-05 16:21:45 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2001-11-05 16:21:45 (GMT)
commit9c2b514014da667e430b9118317876eb1f5e3367 (patch)
treee772ff3c72784655d5e682dc2f68b2b1984b0cf1 /Mac/Modules/carbonevt/CarbonEvtsupport.py
parentbd008844156384108a71423005911e37c0ca5395 (diff)
downloadcpython-9c2b514014da667e430b9118317876eb1f5e3367.zip
cpython-9c2b514014da667e430b9118317876eb1f5e3367.tar.gz
cpython-9c2b514014da667e430b9118317876eb1f5e3367.tar.bz2
Correctly builds the C module now.
Diffstat (limited to 'Mac/Modules/carbonevt/CarbonEvtsupport.py')
-rw-r--r--Mac/Modules/carbonevt/CarbonEvtsupport.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Mac/Modules/carbonevt/CarbonEvtsupport.py b/Mac/Modules/carbonevt/CarbonEvtsupport.py
index da674fc..2609611 100644
--- a/Mac/Modules/carbonevt/CarbonEvtsupport.py
+++ b/Mac/Modules/carbonevt/CarbonEvtsupport.py
@@ -2,7 +2,7 @@
from macsupport import *
-from CarbonEventsscan import RefObjectTypes
+from CarbonEvtscan import RefObjectTypes
# where should this go? macsupport.py?
CFStringRef = OpaqueByValueType('CFStringRef')
@@ -172,8 +172,7 @@ execfile('CarbonEventsgen.py')
for f in functions: module.add(f) # add all the functions carboneventsgen put in the list
for typ in RefObjectTypes: ## go thru all ObjectTypes as defined in CarbonEventsscan.py
- methods = eval(typ + 'methods') ## get a reference to the method list
-from the main namespace
+ methods = eval(typ + 'methods') ## get a reference to the method list from the main namespace
obj = eval(typ + 'object') ## get a reference to the object
for m in methods: obj.add(m) ## add each method in the list to the object
@@ -227,5 +226,5 @@ module.add(f)
SetOutputFileName('_CarbonEvt.c')
module.generate()
-import os
-os.system("python setup.py build")
+##import os
+##os.system("python setup.py build")