From 7aa64711c5d27f7849db13e4c94be2f58ca89fc1 Mon Sep 17 00:00:00 2001 From: atterpac Date: Sat, 4 May 2024 19:15:19 -0700 Subject: [PATCH] windows chdir --- process/process_windows.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/process/process_windows.go b/process/process_windows.go index 83a2c08..0cad821 100644 --- a/process/process_windows.go +++ b/process/process_windows.go @@ -73,7 +73,8 @@ func (pm *ProcessManager) StartProcess(ctx context.Context, cancel context.Cance } // Log buffers } - + pm.ChangeExecuteDirectory(p.Dir) + defer pm.RestoreRootDirectory() var err error if p.Type == Blocking || p.Type == Once { if p.Type == Once && !pm.FirstRun {