MCPcopy Create free account
hub / github.com/ImageEngine/cortex / __findClass

Method __findClass

python/IECore/ClassLoader.py:259–268  ·  view source on GitHub ↗
( self, name )

Source from the content-addressed store, hash-verified

257 return pruneDir
258
259 def __findClass( self, name ) :
260
261 if not name in self.__classes and not self.__foundAllClasses :
262 for path in self.__searchPaths.paths :
263 self.__updateClassFromSearchPath( path, name )
264
265 if name in self.__classes :
266 return self.__classes[name]
267 else :
268 raise RuntimeError( "Class \"%s\" doesn't exist." % name )
269
270 def __findAllClasses( self ) :
271

Callers 4

versionsMethod · 0.95
setDefaultVersionMethod · 0.95
getDefaultVersionMethod · 0.95
loadMethod · 0.95

Calls 1

Tested by

no test coverage detected