File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,17 @@ export interface Options extends SpawnOptions{
3535 stderrParser ?: ( param :string ) => any
3636 encoding ?: string
3737 pythonPath ?: string
38+ /**
39+ * see https://docs.python.org/3.7/using/cmdline.html
40+ */
3841 pythonOptions ?: string [ ]
42+ /**
43+ * overrides scriptPath passed into PythonShell constructor
44+ */
3945 scriptPath ?: string
46+ /**
47+ * arguments to your program
48+ */
4049 args ?: string [ ]
4150}
4251
@@ -97,7 +106,7 @@ export class PythonShell extends EventEmitter{
97106 EventEmitter . call ( this ) ;
98107
99108 options = < Options > extend ( { } , PythonShell . defaultOptions , options ) ;
100- let pythonPath ;
109+ let pythonPath : string ;
101110 if ( ! options . pythonPath ) {
102111 pythonPath = PythonShell . defaultPythonPath ;
103112 } else pythonPath = options . pythonPath ;
You can’t perform that action at this time.
0 commit comments