private static void buildPythonPath( Project project, GeneralCommandLine commandLine, PythonRunParams config) { Sdk pythonSdk = PythonSdkType.findSdkByPath(config.getSdkHome()); if (pythonSdk != null) { List<String> pathList = Lists.newArrayList(getAddedPaths(pythonSdk)); pathList.addAll(collectPythonPath(project, config)); initPythonPath(commandLine, config.isPassParentEnvs(), pathList, config.getSdkHome()); } }
public static void addMessages( @NotNull Map<CompilerMessageCategory, List<String>> messages, @NotNull Map<CompilerMessageCategory, List<String>> toAdd) { for (Map.Entry<CompilerMessageCategory, List<String>> entry : toAdd.entrySet()) { List<String> list = messages.get(entry.getKey()); if (list == null) { list = new ArrayList<String>(); messages.put(entry.getKey(), list); } list.addAll(entry.getValue()); } }