FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

How to send .env variables? · Issue #259 · extrabacon/python-shell · GitHub

Repository navigation

How to send .env variables? #259

Description

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) => { ... }
)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL