diff --git a/Start_Run.py b/Start_Run.py new file mode 100644 index 00000000..fa515efa --- /dev/null +++ b/Start_Run.py @@ -0,0 +1,28 @@ +import os +import sys + +# 添加项目根目录到 Python 路径 +project_root = os.path.dirname(os.path.abspath(__file__)) +sys.path.insert(0, project_root) + +# 添加 RenderPipeline 到路径(注意路径名称应与实际目录一致) +render_pipeline_path = os.path.join(project_root, "RenderPipeline") +sys.path.insert(0, render_pipeline_path) + +# 添加 RenderPipelineFile 路径 +render_pipeline_file_path = os.path.join(project_root, "RenderPipelineFile") +sys.path.insert(0, render_pipeline_file_path) + +# 添加 icons 目录到路径 +icons_path = os.path.join(project_root, "icons") +sys.path.insert(0, icons_path) + +# 现在可以导入并运行主程序 +if __name__ == "__main__": + args = sys.argv[1:] + # args = "/home/tiger/桌面/Test1" + from main import run + if args: + run(args[0]) + else: + run() \ No newline at end of file