Skip to content

Commit c677f05

Browse files
committed
changed default path for scripts, fixes #14
1 parent 2ce9e92 commit c677f05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

147147
Other options are forwarded to `child_process.spawn`.

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)