mirror of
https://github.com/Viren070/AIOStremio.git
synced 2025-12-01 23:24:19 +01:00
Merge pull request #1 from Viren070/patch
fix: look for config.json in data dir
This commit is contained in:
@@ -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
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user