We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15552b9 commit 3d9e424Copy full SHA for 3d9e424
1 file changed
index.ts
@@ -35,8 +35,17 @@ export interface Options extends SpawnOptions{
35
stderrParser?: (param:string)=>any
36
encoding?: string
37
pythonPath?: string
38
+ /**
39
+ * see https://docs.python.org/3.7/using/cmdline.html
40
+ */
41
pythonOptions?: string[]
42
43
+ * overrides scriptPath passed into PythonShell constructor
44
45
scriptPath?: string
46
47
+ * arguments to your program
48
49
args?: string[]
50
}
51
@@ -97,7 +106,7 @@ export class PythonShell extends EventEmitter{
97
106
EventEmitter.call(this);
98
107
99
108
options = <Options>extend({}, PythonShell.defaultOptions, options);
100
- let pythonPath;
109
+ let pythonPath:string;
101
110
if (!options.pythonPath) {
102
111
pythonPath = PythonShell.defaultPythonPath;
103
112
} else pythonPath = options.pythonPath;
0 commit comments