This commit is contained in:
bender
2023-11-12 00:10:13 -05:00
parent d6410e4ab0
commit b1d02cff7b
27 changed files with 506 additions and 403 deletions
+13
View File
@@ -0,0 +1,13 @@
import os
import json
def load_config(file_path):
"""Load the JSON config file and return a dictionary."""
with open(file_path, 'r') as file:
return json.load(file)
def json_to_env(json_file_path):
with open(json_file_path, 'r') as json_file:
config = json.load(json_file)
for key, value in config.items():
os.environ[key.upper()] = str(value)