processGraph: is the value is empty, we do not add it to the command line

This commit is contained in:
Fabien Castan 2017-09-20 00:54:38 +02:00
parent b7c22733f0
commit ff2a65685c

View file

@ -306,8 +306,10 @@ class Node:
self._cmdVars[name] = '--{name} {value}'.format(name=name, value=v)
self._cmdVars[name + 'Value'] = str(v)
self._cmdVars[attr.attributeDesc.group] = self._cmdVars.get(attr.attributeDesc.group, '') + ' ' + \
self._cmdVars[name]
if v is not None and v is not '':
self._cmdVars[attr.attributeDesc.group] = self._cmdVars.get(attr.attributeDesc.group, '') + \
' ' + self._cmdVars[name]
def internalFolder(self):
return self.nodeDesc.internalFolder.format(nodeType=self.nodeType(), **self._cmdVars)