mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-09-20 18:51:26 -03:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user