File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ Creates an instance of `PythonShell` and starts the Python process
141141 * ` encoding ` : the text encoding to apply on the child process streams (default: "utf8")
142142 * ` pythonPath ` : The path where to locate the "python" executable. Default: "python"
143143 * ` pythonOptions ` : Array of option switches to pass to "python"
144- * ` scriptPath ` : The default path where to look for scripts. Default: "./python"
144+ * ` scriptPath ` : The default path where to look for scripts. Default is the current working directory.
145145 * ` args ` : Array of arguments to pass to the script
146146
147147Other options are forwarded to ` child_process.spawn ` .
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ var PythonShell = function (script, options) {
5050 var pythonOptions = toArray ( options . pythonOptions ) ;
5151 var scriptArgs = toArray ( options . args ) ;
5252
53- this . script = path . join ( options . scriptPath || './python ' , script ) ;
53+ this . script = path . join ( options . scriptPath || './' , script ) ;
5454 this . command = pythonOptions . concat ( this . script , scriptArgs ) ;
5555 this . mode = options . mode || 'text' ;
5656 this . formatter = resolve ( 'format' , options . formatter || this . mode ) ;
You can’t perform that action at this time.
0 commit comments