mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Use pythonX instead of pythonX.Y in invoke local
This commit is contained in:
parent
3972633e32
commit
f353efcfae
@ -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()));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user