buffer.append(com.aptana.shared_core.string.StringUtils.format("Unable to get additional project info for: %s (gotten null)",
nature.getProject()));
info.allOk = false;
}
PythonPathHelper pythonPathHelper = (PythonPathHelper) info.modulesManager.getPythonPathHelper();
List<String> pythonpath = pythonPathHelper.getPythonpath();
buffer.append(com.aptana.shared_core.string.StringUtils
.format("Checking the integrity of the project: %s\n\n", nature.getProject().getName()));
buffer.append("Pythonpath:\n");
for (String string : pythonpath) {
buffer.append(string);
buffer.append("\n");
}
buffer.append("\n");
HashSet<ModulesKey> expectedModuleNames = new HashSet<ModulesKey>();
for (String string : pythonpath) {
File file = new File(string);
if (file.exists() && file.isDirectory()) { //TODO: Handle zip file modules!
Collection<PyFileInfo> modulesBelow = pythonPathHelper.getModulesBelow(file, monitor)
.getFoundPyFileInfos();
for (PyFileInfo fileInfo : modulesBelow) {
File moduleFile = fileInfo.getFile();
String modName = pythonPathHelper.resolveModule(FileUtils.getFileAbsolutePath(moduleFile), true);
if (modName != null) {
expectedModuleNames.add(new ModulesKey(modName, moduleFile));
buffer.append(com.aptana.shared_core.string.StringUtils.format("Found module: %s - %s\n", modName, moduleFile));
} else {
if (PythonPathHelper.isValidModuleLastPart(StringUtils.stripExtension((moduleFile.getName())))) {