fix(mma_exec): remove hardcoded C:\projects\misc\setup_*.ps1 paths — rely on PATH
This commit is contained in:
@@ -188,11 +188,7 @@ def execute_agent(role: str, prompt: str, docs: list[str], timeout: int | None =
|
||||
print(f"Error inlining {doc}: {e}")
|
||||
command_text += f"\n\nTASK: {prompt}\n\n"
|
||||
# Spawn claude CLI non-interactively via PowerShell
|
||||
ps_command = (
|
||||
"if (Test-Path 'C:\\projects\\misc\\setup_claude.ps1') "
|
||||
"{ . 'C:\\projects\\misc\\setup_claude.ps1' }; "
|
||||
f"claude --model {model} --print --dangerously-skip-permissions"
|
||||
)
|
||||
ps_command = f"claude --model {model} --print --dangerously-skip-permissions"
|
||||
cmd = ['powershell.exe', '-NoProfile', '-Command', ps_command]
|
||||
try:
|
||||
env = os.environ.copy()
|
||||
|
||||
Reference in New Issue
Block a user