GP-0: Try python3 first.

This commit is contained in:
Dan 2025-03-25 13:12:12 +00:00
parent d35e321e9c
commit 422372a69e

View file

@ -106,7 +106,12 @@ public class TraceRmiPythonClientTest extends AbstractGhidraHeadedDebuggerTest {
}
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
@ -169,8 +174,7 @@ public class TraceRmiPythonClientTest extends AbstractGhidraHeadedDebuggerTest {
}
protected record ExecInPy(PtySession session, PrintWriter stdin,
CompletableFuture<PyResult> future) {
}
CompletableFuture<PyResult> future) {}
@SuppressWarnings("resource") // Do not close stdin
protected ExecInPy execInPy(String script) throws IOException {