Skip to content

Commit 22c0a93

Browse files
committed
For Ghidra 11.2 - old "Python" API now moved to "Jython"
1 parent 3953e9d commit 22c0a93

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

codecut-gui/src/main/java/codecutguiv2/CodeCutGUIPlugin.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787
import ghidra.program.util.GhidraProgramUtilities;
8888
import ghidra.program.util.ProgramChangeRecord;
8989
import ghidra.program.util.ProgramLocation;
90-
import ghidra.python.GhidraPythonInterpreter;
91-
import ghidra.python.PythonScript;
90+
import ghidra.jython.GhidraJythonInterpreter;
91+
import ghidra.jython.JythonScript;
9292
import ghidra.util.HTMLUtilities;
9393
import ghidra.util.HelpLocation;
9494
import ghidra.util.Msg;
@@ -1405,7 +1405,7 @@ public void exportC(String startAddr, String endAddr) {
14051405
}
14061406

14071407
}
1408-
private class CExporter extends PythonScript{
1408+
private class CExporter extends JythonScript{
14091409
Program program = GhidraProgramUtilities.getCurrentProgram(tool);
14101410
GhidraState state = new GhidraState(tool, tool.getProject(), program, null, null, null);
14111411
String start_addr;
@@ -1417,7 +1417,7 @@ public CExporter(String start, String end, File file) {
14171417
this.start_addr = start;
14181418
this.end_addr = end;
14191419
this.outfile = file.getAbsolutePath();
1420-
this.state.addEnvironmentVar("ghidra.python.interpreter", GhidraPythonInterpreter.get());
1420+
this.state.addEnvironmentVar("ghidra.python.interpreter", GhidraJythonInterpreter.get());
14211421
this.path = this.outfile.substring(0, this.outfile.lastIndexOf("/")+1);
14221422
}
14231423
@Override

0 commit comments

Comments
 (0)