Skip to content

Commit

Permalink
Add "python3" to possible pythonExe names
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Apr 17, 2024
1 parent eb899b4 commit 841ecca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/apposed/appose/Environment.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public interface Environment {
*/
default Service python() throws IOException {
List<String> pythonExes = Arrays.asList(
"python", "python.exe",
"python", "python3", "python.exe",
"bin/python", "bin/python.exe"
);
return service(pythonExes, "-c",
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/org/apposed/appose/ApposeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public void testServiceStartupFailure() throws IOException {
catch (IllegalArgumentException exc) {
assertEquals(
"No executables found amongst candidates: " +
"[python, python.exe, bin/python, bin/python.exe]",
"[python, python3, python.exe, bin/python, bin/python.exe]",
exc.getMessage()
);
}
Expand Down

0 comments on commit 841ecca

Please sign in to comment.