mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
Initial revision
This commit is contained in:
parent
6da6aebfdb
commit
453bd408bd
18 changed files with 2990 additions and 0 deletions
10
Demo/sgi/gl/glstdwin/stdwingl.py
Normal file
10
Demo/sgi/gl/glstdwin/stdwingl.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue