PythonExecution (@NotNull HelpersAwareTargetEnvironmentRequest helpersAwareRequest) { PythonScriptExecution pythonScriptExecution = PythonScripts.prepareHelperScriptExecution(getRunner(), helpersAwareRequest); final String key = getKey(); if (key != null) pythonScriptExecution.addParameter(key); pythonScriptExecution.addParameter(getTask()); final String params = myConfiguration.getParams(); if (params != null) PythonScripts.addParametersString(pythonScriptExecution, params); if (!StringUtil.isEmptyOrSpaces(myConfiguration.getInputFile())) { pythonScriptExecution.addParameter(myConfiguration.getInputFile()); } if (!StringUtil.isEmptyOrSpaces(myConfiguration.getOutputFile())) { pythonScriptExecution.addParameter(myConfiguration.getOutputFile()); } return pythonScriptExecution; }