From 069d42c81e5b3bb07530d37b1a045936a0962be5 Mon Sep 17 00:00:00 2001 From: SeongJin Ahn Date: Wed, 24 May 2017 15:04:51 +0900 Subject: [PATCH] [Modification] modify python exe program running. --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 1c2bc59..de58e53 100644 --- a/index.js +++ b/index.js @@ -50,8 +50,9 @@ var PythonShell = function (script, options) { var pythonOptions = toArray(options.pythonOptions); var scriptArgs = toArray(options.args); - this.script = path.join(options.scriptPath || './', script); - this.command = pythonOptions.concat(this.script, scriptArgs); + // this.script = path.join(options.scriptPath || './', script); + // this.command = pythonOptions.concat(this.script, scriptArgs); + this.command = scriptArgs; this.mode = options.mode || 'text'; this.formatter = resolve('format', options.formatter || this.mode); this.parser = resolve('parse', options.parser || this.mode);