diff options
author | Guido van Rossum <guido@python.org> | 1992-03-30 13:18:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-03-30 13:18:37 (GMT) |
commit | 453bd408bdd9287bb020e6ec5411983c8d176c89 (patch) | |
tree | c92cf78d2e602855b408990ed510819657cab3fa /Demo/sgi/gl/glstdwin/stdwingl.py | |
parent | 6da6aebfdb680a5340deae59088f9e68525723b5 (diff) | |
download | cpython-453bd408bdd9287bb020e6ec5411983c8d176c89.zip cpython-453bd408bdd9287bb020e6ec5411983c8d176c89.tar.gz cpython-453bd408bdd9287bb020e6ec5411983c8d176c89.tar.bz2 |
Initial revision
Diffstat (limited to 'Demo/sgi/gl/glstdwin/stdwingl.py')
-rw-r--r-- | Demo/sgi/gl/glstdwin/stdwingl.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Demo/sgi/gl/glstdwin/stdwingl.py b/Demo/sgi/gl/glstdwin/stdwingl.py new file mode 100644 index 0000000..4427593 --- /dev/null +++ b/Demo/sgi/gl/glstdwin/stdwingl.py @@ -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 |