/usr/share/pyshared/OpenGL/acceleratesupport.py is in python-opengl 3.0.1~b2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | """Common code for accelerated modules"""
import OpenGL,logging
needed_version = (3,0,1)
log = logging.getLogger( 'OpenGL.acceleratesupport' )
try:
import OpenGL_accelerate
if OpenGL.USE_ACCELERATE:
if OpenGL_accelerate.__version_tuple__ < needed_version:
log.warn( """Incompatible version of OpenGL_accelerate found, need at least %s found %s""", needed_version, OpenGL_accelerate.__version_tuple__)
raise ImportError( """Old version of OpenGL_accelerate""" )
ACCELERATE_AVAILABLE = True
log.info( """OpenGL_accelerate module loaded""" )
else:
raise ImportError( """Acceleration disabled""" )
except ImportError, err:
log.info( """No OpenGL_accelerate module loaded: %s""", err )
ACCELERATE_AVAILABLE = False
|