11 lines
258 B
Python
11 lines
258 B
Python
|
import json
|
||
|
import os
|
||
|
|
||
|
class Config:
|
||
|
@staticmethod
|
||
|
def load_config():
|
||
|
env = os.getenv('ENV', 'dev')
|
||
|
config_file = f"config/config.{env}.json"
|
||
|
with open(config_file, "r", encoding="utf-8") as f:
|
||
|
return json.load(f)
|