Commit 45b56b56 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

Fixes #460: Pass EXECJS_RUNTIME and PATH when calling into python;

parent a2d6d432
......@@ -24,10 +24,15 @@ function callWeboob(command, access) {
let serverRoot = path.join(__filename, '..', '..', '..');
// Set up the environment.
let env = {};
if (process.env.KRESUS_WEBOOB_DIR)
env.WEBOOB_DIR = process.env.KRESUS_WEBOOB_DIR;
// Variables for PyExecJS, necessary for the Paypal module.
env.PATH = process.env.PATH;
env.EXECJS_RUNTIME = process.env.EXECJS_RUNTIME || 'Node';
let script = spawn(`./weboob/main.py`, [], { cwd: serverRoot, env });
script.stdin.write(`${command}\n`);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment