def fix_osmesa_gl_lib():
 if ('VISPY_GL_LIB' in os.environ):
  logger.warning('VISPY_GL_LIB is ignored when using OSMesa. Use OSMESA_LIBRARY instead.')
 os.environ['VISPY_GL_LIB'] = os.getenv('OSMESA_LIBRARY', 'libOSMesa.so')

def fix_osmesa_gl_lib ( ) : if ( 'VISPY_GL_LIB' in os . environ ) : logger . warning ( 'VISPY_GL_LIB is ignored when using OSMesa. Use OSMESA_LIBRARY instead.' ) os . environ [ 'VISPY_GL_LIB' ] = os . getenv ( 'OSMESA_LIBRARY' , 'libOSMesa.so' )
when using osmesa .