mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
Since the invoke local functionality overrides `process.env.PATH`, only the system python is found, not the python provided by an active virtualenv. This checks for the `VIRTUAL_ENV` environment variable and if present, adds it's bin dir to `PATH`.