mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
newNodeType: fix export
This commit is contained in:
parent
150cc67458
commit
62b179ba0f
1 changed files with 4 additions and 4 deletions
|
@ -63,12 +63,12 @@ def convertToLabel(name):
|
||||||
|
|
||||||
|
|
||||||
outputNodeStr = '''
|
outputNodeStr = '''
|
||||||
import processGraph as pg
|
from processGraph import desc
|
||||||
|
|
||||||
class __COMMANDNAME__(pg.CommandLineNodeDesc):
|
class __COMMANDNAME__(desc.CommandLineNode):
|
||||||
internalFolder = '{nodeType}/{uid0}/'
|
internalFolder = '{nodeType}/{uid0}/'
|
||||||
cmdLineExpr = '{nodeType} {allParams}'
|
cmdLineExpr = '{nodeType} {allParams}'
|
||||||
'''.replace('__COMMANDNAME__', 'args.node')
|
'''.replace('__COMMANDNAME__', args.node)
|
||||||
|
|
||||||
|
|
||||||
print(inputCmdLineDoc)
|
print(inputCmdLineDoc)
|
||||||
|
@ -121,7 +121,7 @@ for inputArg in inputArgs:
|
||||||
inputArgLower = ' '.join(inputArg).lower()
|
inputArgLower = ' '.join(inputArg).lower()
|
||||||
isFile = 'path' in inputArgLower or 'folder' in inputArgLower or 'file' in inputArgLower
|
isFile = 'path' in inputArgLower or 'folder' in inputArgLower or 'file' in inputArgLower
|
||||||
outputNodeStr += '''
|
outputNodeStr += '''
|
||||||
{name} = pg.{attributeType}(
|
{name} = desc.{attributeType}(
|
||||||
label='{label}',
|
label='{label}',
|
||||||
description='{description}',
|
description='{description}',
|
||||||
value={value},
|
value={value},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue