We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c8928c5 + b34e125 commit a020117Copy full SHA for a020117
1 file changed
index.ts
@@ -82,7 +82,10 @@ class PythonShell extends EventEmitter{
82
EventEmitter.call(this);
83
84
options = <Options>extend({}, PythonShell.defaultOptions, options);
85
- let pythonPath = options.pythonPath || 'python';
+ let pythonPath;
86
+ if (!options.pythonPath) {
87
+ pythonPath = process.platform != "win32" ? "python3" : "python"
88
+ } else pythonPath = options.pythonPath;
89
let pythonOptions = toArray(options.pythonOptions);
90
let scriptArgs = toArray(options.args);
91
0 commit comments