From f353efcfae401de0fce7ea61c38eb139df1beb09 Mon Sep 17 00:00:00 2001 From: horike37 Date: Mon, 13 Aug 2018 22:56:48 +0900 Subject: [PATCH] Use pythonX instead of pythonX.Y in invoke local --- lib/plugins/aws/invokeLocal/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/aws/invokeLocal/index.js b/lib/plugins/aws/invokeLocal/index.js index fe6e99e44..058f2770a 100644 --- a/lib/plugins/aws/invokeLocal/index.js +++ b/lib/plugins/aws/invokeLocal/index.js @@ -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()));