From cdc1615bc28d0437876db27d553dcc0381e6e58e Mon Sep 17 00:00:00 2001 From: wti Date: Mon, 5 Jan 2026 23:40:29 -0800 Subject: [PATCH] RunCommand: find server script by CLI; report path in error message --- Sources/IgniteCLI/RunCommand.swift | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Sources/IgniteCLI/RunCommand.swift b/Sources/IgniteCLI/RunCommand.swift index d8e1fdc2..d750ebcb 100644 --- a/Sources/IgniteCLI/RunCommand.swift +++ b/Sources/IgniteCLI/RunCommand.swift @@ -62,14 +62,17 @@ struct RunCommand: ParsableCommand { " " } - // Get the installed location of the server script - let serverScriptURL = URL(filePath: "/usr/local/bin/ignite-server.py") + // Find the server script installed next to the tool itself + let tool = ProcessInfo.processInfo.arguments.first ?? "NEVER" + let dirLoc = tool.lastIndex(of: "/") ?? tool.endIndex + let toolDir = String(tool[..