Pi66

Home | Repos | About | Blog | Gaza

merodi
A markdown-based static site generator.
git clone https://git.pi66.xyz/merodi

About | Files | Commits | Refs | License


feat: set api.config inside load_config

Author: pi66
Date: 2026-07-18 22:26
commit: 630880bb

Stat

M src/config.py 4 +3 -1

Diff

diff --git a/src/config.py b/src/config.py
index e0b7227..63ee3be 100644
--- a/src/config.py
+++ b/src/config.py
@@ -5,6 +5,7 @@ from .fileops import read_file
 from .log import GRAY
 from .modules import Cache, Config, Extras, Project, Tree, Webview
 from .hooks import hook_call
+from .api import api
 
 
 def find_project_from_path(project_path: str):
@@ -76,5 +77,6 @@ def load_config() -> Config:
         cache   = load_cache_config(config_loaded),
     )
     config = hook_call("on_config_load", config) or config
-    return config
+    api.config = config
 
+    return config

// Created by Pi66

// Copyright ©Pi66 2026