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[..