PY-33880 Fix AttributeError when running Python Console on IronPython

This commit is contained in:
Alexander Koshevoy
2019-02-06 00:15:38 +03:00
parent 0a52b4c2b7
commit 9d7582d98a
@@ -70,6 +70,12 @@ private fun GeneralCommandLine.initializePydevConsoleScriptGroup(pythonSdkFlavor
}
group.addParameter(PythonHelper.CONSOLE.asParamString())
// fix `AttributeError` when running Python Console on IronPython
pythonSdkFlavor?.extraDebugOptions?.let { extraDebugOptions ->
val exeGroup = parametersList.getParamsGroup(PythonCommandLineState.GROUP_EXE_OPTIONS)
extraDebugOptions.forEach { exeGroup?.addParameter(it) }
}
return group
}