Skip to content

Commit

Permalink
fix python3 test
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Oct 6, 2023
1 parent f122aab commit b194ea7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
}
Expand Down

0 comments on commit b194ea7

Please sign in to comment.