Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c2b514

Browse files
committed
Correctly builds the C module now.
1 parent bd00884 commit 9c2b514

2 files changed

Lines changed: 1600 additions & 5 deletions

File tree

Mac/Modules/carbonevt/CarbonEvtsupport.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from macsupport import *
44

5-
from CarbonEventsscan import RefObjectTypes
5+
from CarbonEvtscan import RefObjectTypes
66

77
# where should this go? macsupport.py?
88
CFStringRef = OpaqueByValueType('CFStringRef')
@@ -172,8 +172,7 @@
172172
for f in functions: module.add(f) # add all the functions carboneventsgen put in the list
173173

174174
for typ in RefObjectTypes: ## go thru all ObjectTypes as defined in CarbonEventsscan.py
175-
methods = eval(typ + 'methods') ## get a reference to the method list
176-
from the main namespace
175+
methods = eval(typ + 'methods') ## get a reference to the method list from the main namespace
177176
obj = eval(typ + 'object') ## get a reference to the object
178177
for m in methods: obj.add(m) ## add each method in the list to the object
179178

@@ -227,5 +226,5 @@
227226
SetOutputFileName('_CarbonEvt.c')
228227
module.generate()
229228

230-
import os
231-
os.system("python setup.py build")
229+
##import os
230+
##os.system("python setup.py build")

0 commit comments

Comments
 (0)