1 # If you put 'import stdwin_gl' in front of the main program of a program
2 # using stdwin (before it has a chance to import the real stdwin!),
3 # it will use glstdwin and think it is stdwin.
6 if sys
.modules
.has_key('stdwin'):
7 raise RuntimeError, 'too late -- stdwin has already been imported'
10 sys
.modules
['stdwin'] = glstdwin