From 54c1984ec79d5a7a916cc8bb4e6f836bb313f3bc Mon Sep 17 00:00:00 2001 From: dekun Date: Thu, 2 Jul 2026 22:58:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=AD=E6=8E=A7=20iframe=20=E5=B5=8C?= =?UTF-8?q?=E5=85=A5=E6=A8=A1=E6=9D=BF=E8=B7=AF=E5=BE=84=E6=94=B9=E7=94=A8?= =?UTF-8?q?=20REPO=5FROOT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- lib/hub/hub_bridge.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/hub/hub_bridge.py b/lib/hub/hub_bridge.py index 2154655..a32c920 100644 --- a/lib/hub/hub_bridge.py +++ b/lib/hub/hub_bridge.py @@ -312,12 +312,10 @@ def install_on_app( install_instance_theme_static(app) register_hub_routes(app) if render_main_page_fn and login_required_fn: - import os - from lib.instance.instance_embed_lib import attach_embed_templates, register_embed_routes + from lib.paths import REPO_ROOT - repo_root = os.path.dirname(os.path.abspath(__file__)) - attach_embed_templates(app, repo_root) + attach_embed_templates(app, str(REPO_ROOT)) register_embed_routes(app, login_required_fn, render_main_page_fn)