[Python-checkins] CVS: python/dist/src/Mac/Modules/carbonevt CarbonEvtsupport.py,1.2,1.3

Jack Jansen jackjansen@users.sourceforge.net
Mon, 05 Nov 2001 08:21:47 -0800


Update of /cvsroot/python/python/dist/src/Mac/Modules/carbonevt
In directory usw-pr-cvs1:/tmp/cvs-serv20425/python/Mac/Modules/carbonevt

Modified Files:
	CarbonEvtsupport.py 
Log Message:
Correctly builds the C module now.

Index: CarbonEvtsupport.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Mac/Modules/carbonevt/CarbonEvtsupport.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CarbonEvtsupport.py	2001/11/05 16:15:45	1.2
--- CarbonEvtsupport.py	2001/11/05 16:21:45	1.3
***************
*** 3,7 ****
  from macsupport import *
  
! from CarbonEventsscan import RefObjectTypes
  
  # where should this go? macsupport.py?
--- 3,7 ----
  from macsupport import *
  
! from CarbonEvtscan import RefObjectTypes
  
  # where should this go? macsupport.py?
***************
*** 173,178 ****
  
  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
  	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
--- 173,177 ----
  
  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
  	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
***************
*** 228,231 ****
  module.generate()
  
! import os
! os.system("python setup.py build")
--- 227,230 ----
  module.generate()
  
! ##import os
! ##os.system("python setup.py build")