def opengl_arrays_modules():
 statement = 'import OpenGL; print(OpenGL.__path__[0])'
 opengl_mod_path = exec_statement(statement)
 arrays_mod_path = os.path.join(opengl_mod_path, 'arrays')
 files = glob.glob((arrays_mod_path + '/*.py'))
 modules = []
 for f in files:
  mod = os.path.splitext(os.path.basename(f))[0]
  if (mod == '__init__'):
   continue
  modules.append(('OpenGL.arrays.' + mod))
 return modules

def opengl_arrays_modules ( ) : statement = 'import OpenGL; print(OpenGL.__path__[0])' opengl_mod_path = exec_statement ( statement ) arrays_mod_path = os . path . join ( opengl_mod_path , 'arrays' ) files = glob . glob ( ( arrays_mod_path + '/*.py' ) ) modules = [ ] for f in files : mod = os . path . splitext ( os . path . basename ( f ) ) [ 0 ] if ( mod == '__init__' ) : continue modules . append ( ( 'OpenGL.arrays.' + mod ) ) return modules
return list of array modules for opengl module .