The Question:
How do I send my whole .env file to a python script?
Any relevant python/javascript code:
I was trying the following with no success:
let options = {
args: [req.params.streamId, req.params.term],
env: process.env
};
PythonShell.run(
"scripts/associations.py",
options,
(err, results) => { ... }
)
Reactions are currently unavailable
The Question:
How do I send my whole .env file to a python script?
Any relevant python/javascript code:
I was trying the following with no success:
let options = { args: [req.params.streamId, req.params.term], env: process.env }; PythonShell.run( "scripts/associations.py", options, (err, results) => { ... } )