File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ export const pythonFromBlock = function (
458458 xfix2 = xfix1 ;
459459 }
460460 if ( block . mrcPythonMethodName == '__init__' ) {
461- branch = generator . INDENT + 'super().__init__(robot )\n' +
461+ branch = generator . INDENT + 'super().__init__()\n' +
462462 generator . defineClassVariables ( ) + branch ;
463463 }
464464 if ( returnValue ) {
@@ -469,6 +469,10 @@ export const pythonFromBlock = function (
469469
470470 let params = block . mrcParameters ;
471471 let paramString = "self" ;
472+ if ( block . mrcPythonMethodName == '__init__' ) {
473+ paramString += generator . getListOfPorts ( false ) ;
474+ }
475+
472476 if ( params . length != 0 ) {
473477 block . mrcParameters . forEach ( ( param ) => {
474478 paramString += ', ' + param . name ;
You can’t perform that action at this time.
0 commit comments