We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents df47458 + f267780 commit b34e125Copy full SHA for b34e125
index.js
@@ -45,9 +45,12 @@ var PythonShell = function (script, options) {
45
var self = this;
46
var errorData = '';
47
EventEmitter.call(this);
48
-
+
49
options = extend({}, PythonShell.defaultOptions, options);
50
- var pythonPath = options.pythonPath || 'python';
+ var pythonPath;
51
+ if (!options.pythonPath) {
52
+ pythonPath = process.platform != "win32" ? "python3" : "python"
53
+ } else pythonPath = options.pythonPath;
54
var pythonOptions = toArray(options.pythonOptions);
55
var scriptArgs = toArray(options.args);
56
0 commit comments