#NEWLINE# def appendParameterisedHolders( menuDefinition , prefix , searchPathEnvVar , nodeCreator , matchExpression = re . compile ( '.*' ) ) : #NEWLINE# #INDENT# if isinstance ( matchExpression , str ) : #NEWLINE# #INDENT# matchExpression = re . compile ( fnmatch . translate ( matchExpression ) ) #NEWLINE# #UNINDENT# menuDefinition . append ( prefix , { #NEWLINE# #INDENT# 'subMenu' : IECore . curry ( __parameterisedHolderMenu , nodeCreator , matchExpression , matchExpression ) , #NEWLINE# #UNINDENT# } )