mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-28 17:11:11 -09:00
GP-0: Minor GhidraDev fix
This commit is contained in:
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user