Support TOML config, project venv, and public packaging.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
swl
2026-10-10 00:54:07 +08:00
co-authored by Cursor
parent 870dea0825
commit 487aacf864
16 changed files with 323 additions and 172 deletions
+5 -1
View File
@@ -189,7 +189,11 @@ def _campplus():
return _S["campplus"]
import torch
root = os.environ.get("SONGFORGE_COMFY_ROOT") or os.environ.get(
"COMFY_ROOT") or r"D:\CodeFiles\Thinking\ComfyUI-MiniMaxH3"
"COMFY_ROOT")
if not root:
raise RuntimeError(
"缺少 SONGFORGE_COMFY_ROOT(由 songforge qc 注入,或写在 "
"config/local.toml 的 paths.comfy_root)")
for p in (root, os.path.dirname(os.path.abspath(__file__))):
sys.path.insert(0, p)
sys.path.insert(0, os.path.join(p, "custom_nodes",