From b194ea71bc6903abf18c0391db1ddfe4fc2b37ee Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 6 Oct 2023 08:37:26 +0200 Subject: [PATCH] fix python3 test --- lib/Common.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/Common.js b/lib/Common.js index 00d8b71b6..1331dcb78 100644 --- a/lib/Common.js +++ b/lib/Common.js @@ -449,12 +449,11 @@ Common.sink.resolveInterpreter = function(app) { app.exec_interpreter = betterInterpreter; if (betterInterpreter == "python") { - if (which('python') == null) - if (which('python3') == null) { + if (which('python') == null) { + if (which('python3') == null) Common.printError(cst.PREFIX_MSG_WARNING + chalk.bold.yellow('python and python3 binaries not available in PATH')); - } - else { - app.exec_interpreter = 'python3'; + else + app.exec_interpreter = 'python3'; } } }