mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GP-0: Try python3 first.
This commit is contained in:
parent
d35e321e9c
commit
422372a69e
1 changed files with 7 additions and 3 deletions
|
@ -106,7 +106,12 @@ public class TraceRmiPythonClientTest extends AbstractGhidraHeadedDebuggerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected Path getPathToPython() {
|
protected Path getPathToPython() {
|
||||||
return Paths.get(DummyProc.which("python"));
|
try {
|
||||||
|
return Paths.get(DummyProc.which("python3"));
|
||||||
|
}
|
||||||
|
catch (RuntimeException e) {
|
||||||
|
return Paths.get(DummyProc.which("python"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
@ -169,8 +174,7 @@ public class TraceRmiPythonClientTest extends AbstractGhidraHeadedDebuggerTest {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected record ExecInPy(PtySession session, PrintWriter stdin,
|
protected record ExecInPy(PtySession session, PrintWriter stdin,
|
||||||
CompletableFuture<PyResult> future) {
|
CompletableFuture<PyResult> future) {}
|
||||||
}
|
|
||||||
|
|
||||||
@SuppressWarnings("resource") // Do not close stdin
|
@SuppressWarnings("resource") // Do not close stdin
|
||||||
protected ExecInPy execInPy(String script) throws IOException {
|
protected ExecInPy execInPy(String script) throws IOException {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue