fix(e2e): resolve project root from the script's actual location

start_server.py computed the project root three levels up from scripts/,
assuming it lived under .agents/skills/<skill>/scripts/. After moving to
scripts/e2e/ that resolved to the ComfyUI root, so the launcher failed
with "can't open file 'standalone.py'".
This commit is contained in:
Will Miao
2026-09-17 10:30:10 +08:00
parent b9a516c9f8
commit 9eeebac40b
+2 -3
View File
@@ -225,10 +225,9 @@ def main() -> int:
args = parser.parse_args()
# Get project root (parent of .agents directory)
# Get project root: this script lives in <project_root>/scripts/e2e/.
script_dir = os.path.dirname(os.path.abspath(__file__))
skill_dir = os.path.dirname(script_dir)
project_root = os.path.dirname(os.path.dirname(os.path.dirname(skill_dir)))
project_root = os.path.dirname(os.path.dirname(script_dir))
managed_pids = read_managed_pids(args.port)