chamikaramj commented on code in PR #17366:
URL: https://github.com/apache/beam/pull/17366#discussion_r850716094
##########
sdks/java/extensions/python/src/main/java/org/apache/beam/sdk/extensions/python/PythonService.java:
##########
@@ -96,6 +95,18 @@ public AutoCloseable start() throws IOException,
InterruptedException {
return p::destroy;
}
+ private String whichPython() {
+ for (String executable : ImmutableList.of("python3", "python")) {
+ try {
+ new ProcessBuilder(executable, "--version").start().waitFor();
+ return executable;
+ } catch (IOException | InterruptedException exn) {
+ // Ignore.
Review Comment:
Will ignore result in a default Python binary being picked ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]