From 9eeebac40be397207ef5a090c848ec2acb3815ed Mon Sep 17 00:00:00 2001 From: Will Miao Date: Thu, 17 Sep 2026 10:30:10 +0800 Subject: [PATCH] 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//scripts/. After moving to scripts/e2e/ that resolved to the ComfyUI root, so the launcher failed with "can't open file 'standalone.py'". --- scripts/e2e/start_server.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/e2e/start_server.py b/scripts/e2e/start_server.py index d5b2da45..c1d4296c 100755 --- a/scripts/e2e/start_server.py +++ b/scripts/e2e/start_server.py @@ -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 /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)