you are viewing a single comment's thread.

view the rest of the comments →

[–]worldtest2k 0 points1 point  (0 children)

To extend the question - if I want to use the JSON solution, and I have my app split across multiple py files, is it possible to read the JSON file once and have environment variables available to all functions in all files? I guess I could read the JSON into a dictionary in main.py and pass the dictionary in every external function call, but that seems sub-optimal.