mirror of
https://github.com/zhigang1992/now-deployment.git
synced 2026-06-15 02:09:11 +08:00
12 lines
539 B
JavaScript
12 lines
539 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const path_1 = require("path");
|
|
const child_process_1 = require("child_process");
|
|
// `PYTHONPATH` is *not* a restricted env var, so only set the
|
|
// default one if the user did not provide one of their own
|
|
if (!process.env.PYTHONPATH) {
|
|
process.env.PYTHONPATH = process.env.LAMBDA_RUNTIME_DIR;
|
|
}
|
|
const bootstrap = path_1.join(__dirname, 'bootstrap.py');
|
|
child_process_1.spawn('python', [bootstrap], { stdio: 'inherit' });
|
|
//# sourceMappingURL=bootstrap.js.map
|