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)