Skip to content

Commit

Permalink
Merge pull request #3 from tpietzsch/macos-fixes
Browse files Browse the repository at this point in the history
Macos fixes
  • Loading branch information
ctrueden authored Apr 18, 2024
2 parents eb899b4 + 2c616f7 commit 9a0c7bf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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/main/java/org/apposed/appose/FilePaths.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static File findExe(List<String> dirs, List<String> exes) {
// Candidate is a relative path; check beneath each given directory.
for (String dir : dirs) {
File f = Paths.get(dir, exe).toFile();
if (f.canExecute()) return f;
if (f.canExecute() && !f.isDirectory()) return f;
}
}
}
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 9a0c7bf

Please sign in to comment.