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

Function __formatFileNameParameter

python/IECore/FormattedParameterHelp.py:77–95  ·  view source on GitHub ↗
( parm, formatter )

Source from the content-addressed store, hash-verified

75 formatter.unindent()
76
77def __formatFileNameParameter( parm, formatter ) :
78
79 __formatParameter( parm, formatter )
80 formatter.indent()
81
82 e = parm.extensions
83 if len( e ) :
84 formatter.paragraph( "Valid extensions : " + " ".join( e ) )
85
86 if parm.mustExist :
87 formatter.paragraph( "File must exist" )
88
89 if parm.mustNotExist :
90 formatter.paragraph( "File must not exist" )
91
92 if not parm.allowEmptyString :
93 formatter.paragraph( "File must be specified" )
94
95 formatter.unindent()
96
97def __formatDirNameParameter( parm, formatter ) :
98

Callers

nothing calls this directly

Calls 6

__formatParameterFunction · 0.85
joinMethod · 0.80
lenFunction · 0.50
indentMethod · 0.45
paragraphMethod · 0.45
unindentMethod · 0.45

Tested by

no test coverage detected