From 0bbcb41346de3fc621f68b22fbb606ab30d93875 Mon Sep 17 00:00:00 2001 From: Research Assistant Date: Tue, 28 Apr 2026 22:31:13 +0800 Subject: [PATCH] fix: reload paperforge module before installing plugin to get updated path --- paperforge/worker/update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/paperforge/worker/update.py b/paperforge/worker/update.py index 33bb98c3..3e225f1c 100644 --- a/paperforge/worker/update.py +++ b/paperforge/worker/update.py @@ -271,7 +271,9 @@ def update_via_zip(vault: Path) -> bool: def _install_obsidian_plugin(vault: Path) -> bool: """Copy Obsidian plugin files into .obsidian/plugins/paperforge/.""" try: + import importlib import paperforge + importlib.reload(paperforge) pkg_dir = Path(paperforge.__file__).parent.resolve() plugin_src = pkg_dir / "plugin"