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


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

Author: pi66
Date: 2026-07-04 23:05
commit: 1bc913fe

Stat

M src/watcher.py 2 +1 -1

Diff

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,

// Created by Pi66

// Copyright ©Pi66 2026