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

Method __pathIndex

python/IECore/MenuDefinition.py:207–214  ·  view source on GitHub ↗
( self, path )

Source from the content-addressed store, hash-verified

205 return "MenuDefinition( " + repr( self.items() ) + " )"
206
207 def __pathIndex( self, path ) :
208
209 for i in range( 0, len( self.__items ) ) :
210
211 if self.__items[i][0]==path :
212 return i
213
214 raise KeyError( path )

Callers 2

insertBeforeMethod · 0.95
insertAfterMethod · 0.95

Calls 1

lenFunction · 0.50

Tested by

no test coverage detected