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

Function __formatDirNameParameter

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

Source from the content-addressed store, hash-verified

95 formatter.unindent()
96
97def __formatDirNameParameter( parm, formatter ) :
98
99 __formatParameter( parm, formatter )
100 formatter.indent()
101
102 if parm.mustExist :
103 formatter.paragraph( "Directory must exist" )
104
105 if parm.mustNotExist :
106 formatter.paragraph( "Directory must not exist" )
107
108 if not parm.allowEmptyString :
109 formatter.paragraph( "Directory must be specified" )
110
111 formatter.unindent()
112
113def __formatFileSequenceParameter( parm, formatter ) :
114

Callers

nothing calls this directly

Calls 4

__formatParameterFunction · 0.85
indentMethod · 0.45
paragraphMethod · 0.45
unindentMethod · 0.45

Tested by

no test coverage detected