mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
fix: reload paperforge module before installing plugin to get updated path
This commit is contained in:
parent
1ec09b6baa
commit
0bbcb41346
1 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue