GP-0: Minor GhidraDev fix

This commit is contained in:
Ryan Kurtz
2026-09-10 12:02:32 -04:00
parent f704da1487
commit c96374c281

View File

@@ -40,6 +40,7 @@ import ghidra.launch.AppConfig;
import ghidradev.Activator;
import ghidradev.EclipseMessageUtils;
import ghidradev.ghidraprojectcreator.utils.PyDevUtils.ProjectPythonInterpreter;
import ghidradev.ghidraprojectcreator.utils.PyDevUtils.ProjectPythonInterpreterType;
import utility.module.ModuleUtilities;
/**
@@ -484,13 +485,15 @@ public class GhidraProjectUtils {
GhidraModuleUtils.writeAntProperties(javaProject.getProject(), ghidraLayout);
// Setup Python for the project
try {
PyDevUtils.setupPythonForProject(javaProject, libraryClasspathEntries,
pythonInterpreter, monitor);
}
catch (OperationNotSupportedException e) {
EclipseMessageUtils.showErrorDialog("PyDev error",
"Failed to setup Python for the project. PyDev version is not supported.");
if (!pythonInterpreter.type().equals(ProjectPythonInterpreterType.NONE)) {
try {
PyDevUtils.setupPythonForProject(javaProject, libraryClasspathEntries,
pythonInterpreter, monitor);
}
catch (OperationNotSupportedException e) {
EclipseMessageUtils.showErrorDialog("PyDev error",
"Failed to setup Python for the project. PyDev version is not supported.");
}
}
}