From 1890ba8bc3f6f184d5172b87a6c6adf540701f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=A8=AA?= <2938139566@qq.com> Date: Thu, 30 Oct 2025 17:15:38 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E9=83=A8=E5=88=86=E5=9B=BE?= =?UTF-8?q?=E6=A0=87=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Start_Run.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Start_Run.py b/Start_Run.py index 8e6a1214..81951385 100644 --- a/Start_Run.py +++ b/Start_Run.py @@ -5,6 +5,9 @@ import sys project_root = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, project_root) +# 设置工作目录为项目根目录 +os.chdir(project_root) + # 添加 RenderPipeline 到路径(注意路径名称应与实际目录一致) render_pipeline_path = os.path.join(project_root, "RenderPipeline") sys.path.insert(0, render_pipeline_path)