Skip to content

Commit a020117

Browse files
committed
2 parents c8928c5 + b34e125 commit a020117

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ class PythonShell extends EventEmitter{
8282
EventEmitter.call(this);
8383

8484
options = <Options>extend({}, PythonShell.defaultOptions, options);
85-
let pythonPath = options.pythonPath || 'python';
85+
let pythonPath;
86+
if (!options.pythonPath) {
87+
pythonPath = process.platform != "win32" ? "python3" : "python"
88+
} else pythonPath = options.pythonPath;
8689
let pythonOptions = toArray(options.pythonOptions);
8790
let scriptArgs = toArray(options.args);
8891

0 commit comments

Comments
 (0)