I'm trying to move some of the config out of my python web applications into the environment, and I'm wondering if there's a best practice for making environment variables available to all users.
For example, I'm setting the env variable PYTHON_MSSQL_DRIVER="ODBC Driver 17 for SQL Server"
, and I want it to be available to www-data (the user that nginx and uwsgi use to serve the applications), But I also want the env variable available to any developer who might be running a python script on command line (or the automated tests), so simply sudo -u www-data export...
won't do the trick.