Merge pull request #1 from Viren070/patch

fix: look for config.json in data dir
This commit is contained in:
Viren070
2025-02-18 23:35:33 +00:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -165,8 +165,8 @@ async def sanity_check():
continue
logger.info("Config | Checking config...")
with open("config.json.example", "r") as f:
config_path = os.path.join(os.path.dirname(__file__), "data")
with open(config_path, "r") as f:
example_config = json.load(f)
def validate_config_structure(example: dict, current: dict, path: str = ""):
+1 -1
View File
@@ -15,7 +15,7 @@ class Config:
def _load_config(self):
config_path = os.path.join(
os.path.dirname(os.path.dirname(__file__)), "config.json"
os.path.dirname(os.path.dirname(__file__)), "data", "config.json"
)
try:
with open(config_path, "r") as f: