mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			353 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			353 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # If you put 'import stdwin_gl' in front of the main program of a program
 | |
| # using stdwin (before it has a chance to import the real stdwin!),
 | |
| # it will use glstdwin and think it is stdwin.
 | |
| 
 | |
| import sys
 | |
| if sys.modules.has_key('stdwin'):
 | |
| 	raise RuntimeError, 'too late -- stdwin has already been imported'
 | |
| 
 | |
| import glstdwin
 | |
| sys.modules['stdwin'] = glstdwin
 | 
