Skip to content

Commit b194ea7

Browse files
committedOct 6, 2023
fix python3 test
1 parent f122aab commit b194ea7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎lib/Common.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -449,12 +449,11 @@ Common.sink.resolveInterpreter = function(app) {
449449
app.exec_interpreter = betterInterpreter;
450450

451451
if (betterInterpreter == "python") {
452-
if (which('python') == null)
453-
if (which('python3') == null) {
452+
if (which('python') == null) {
453+
if (which('python3') == null)
454454
Common.printError(cst.PREFIX_MSG_WARNING + chalk.bold.yellow('python and python3 binaries not available in PATH'));
455-
}
456-
else {
457-
app.exec_interpreter = 'python3';
455+
else
456+
app.exec_interpreter = 'python3';
458457
}
459458
}
460459
}

0 commit comments

Comments
 (0)
Please sign in to comment.