Pi66

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

← back to log

fix: use config.tree instead of stale tree_config, watch plugin dir

author: pi66
date: 2026-07-04 23:05
hash: 1bc913fe0f0f403f6a6cd13a66c6aa72568862a6

Diffstat:

M

src/watcher.py
2 +++++++++++++++---------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
diff --git a/src/watcher.py b/src/watcher.py
index 4dbadb2..1aef4b4 100644
--- a/src/watcher.py
+++ b/src/watcher.py
@@ -46,7 +46,7 @@ def watch_files(reload_func:Callable | None=None):
             if reload_func and file: reload_func(file)
     observer = Observer()
     handler = ReloadHandler()
-    for file in [tree_config.markdown, tree_config.templates, tree_config.plugins, tree_config.static]:
+    for file in [config.tree.markdown, config.tree.templates, path.dirname(config.tree.plugins), config.tree.static]:
         observer.schedule(
             handler,
             path=file,