Use pythonX instead of pythonX.Y in invoke local

This commit is contained in:
horike37 2018-08-13 22:56:48 +09:00
parent 3972633e32
commit f353efcfae

View File

@ -173,7 +173,7 @@ class AwsInvokeLocal {
}
return new BbPromise(resolve => {
const python = spawn(runtime,
const python = spawn(runtime.split('.')[0],
['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName],
{ env: process.env }, { shell: true });
python.stdout.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString()));