Clarify portability and main program.
[python/dscho.git] / Demo / sgi / gl / glstdwin / stdwingl.py
blob442759319b2f3f05096f102ad19e9e00d2bb95b7
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.
5 import sys
6 if sys.modules.has_key('stdwin'):
7 raise RuntimeError, 'too late -- stdwin has already been imported'
9 import glstdwin
10 sys.modules['stdwin'] = glstdwin