PythonRunConfigurationParams (Module module, String scriptName) { RunnerAndConfigurationSettings settings = createRunConfiguration(module, PythonConfigurationType.getInstance().getFactory()); PythonRunConfigurationParams configuration = (PythonRunConfigurationParams)settings.getConfiguration(); configuration.setScriptName(scriptName); return configuration; }