Project project = myConfig.getProject();
Module module = myConfig.getConfigurationModule().getModule();
GeneralCommandLine commandLine = new GeneralCommandLine();
commandLine.setExePath(ErlangConsoleUtil.getErlPath(project, module));
String consoleArgs = myConfig.getConsoleArgs();
commandLine.addParameters(StringUtil.split(consoleArgs, " "));
commandLine.addParameters(ErlangConsoleUtil.getCodePath(project, module, false));
commandLine.setWorkDirectory(ErlangConsoleUtil.getWorkingDirPath(project, myConfig.getWorkingDirPath()));
OSProcessHandler handler = new OSProcessHandler(commandLine.createProcess(), commandLine.getCommandLineString());
ProcessTerminatedListener.attach(handler);
return handler;