Skip to content

Commit

Permalink
#3076: auto flush python stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Aug 27, 2018
1 parent 3c37b52 commit fe2a444
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,13 @@ Common.sink.resolveInterpreter = function(app) {
var betterInterpreter = extItps[extName];

// No interpreter defined and correspondance in schema hashmap
if (noInterpreter && betterInterpreter)
if (noInterpreter && betterInterpreter) {
app.exec_interpreter = betterInterpreter;

if (betterInterpreter == 'python') {
app.env.PYTHONUNBUFFERED = '1'
}
}
// Else if no Interpreter detect if process is binary
else if (noInterpreter)
app.exec_interpreter = isBinary(app.pm_exec_path) ? 'none' : 'node';
Expand Down

0 comments on commit fe2a444

Please sign in to comment.