We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b471907 commit 91bca43Copy full SHA for 91bca43
1 file changed
index.ts
@@ -310,12 +310,12 @@ export class PythonShell extends EventEmitter {
310
}
311
312
/**
313
- * Runs a Python script and returns collected messages as a promise
+ * Runs a Python script and returns collected messages as a promise.
314
+ * If the promise is rejected, the err will probably be of type PythonShellErrorWithLogs
315
* @param scriptPath The path to the script to execute
316
* @param options The execution options
- * @return a promise with the output from the python script
317
*/
318
- static run(scriptPath: string, options?: Options) {
+ static run(scriptPath: string, options?: Options): Promise<any[]> {
319
return new Promise((resolve, reject) => {
320
let pyshell = new PythonShell(scriptPath, options);
321
let output = [];
0 commit comments