You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/11 15:28:33 UTC
[GitHub] rabbah closed pull request #3466: Support alternative path for
python in whiskprops
rabbah closed pull request #3466: Support alternative path for python in whiskprops
URL: https://github.com/apache/incubator-openwhisk/pull/3466
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/tests/src/test/scala/common/WhiskProperties.java b/tests/src/test/scala/common/WhiskProperties.java
index 08a206948d..64e9c28045 100644
--- a/tests/src/test/scala/common/WhiskProperties.java
+++ b/tests/src/test/scala/common/WhiskProperties.java
@@ -319,9 +319,9 @@ public static boolean onLinux() {
}
/**
- * where is python 2.7?
+ * python interpreter.
*/
- public static final String python = findPython();
+ public static final String python = "python";
protected static File findFileRecursively(String dir, String needle) {
if (dir != null) {
@@ -362,15 +362,6 @@ protected static Properties loadProperties(File propsFile) {
return props;
}
- private static String findPython() {
- File p27 = new File("/usr/local/bin/python2.7");
- if (p27.exists()) {
- return "/usr/local/bin/python2.7";
- } else {
- return "python";
- }
- }
-
private static int getConcurrentTestCount(String count) {
if (count != null && count.trim().isEmpty() == false) {
try {
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services