From dd7b6835596920c6cccea1e2f55981823d0fe9d4 Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Mon, 20 Jul 2020 00:08:16 +0300 Subject: [PATCH] Allow specifying environment for Process on Windows --- Sources/TSCBasic/Process.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/TSCBasic/Process.swift b/Sources/TSCBasic/Process.swift index b89af420..5dd6c19b 100644 --- a/Sources/TSCBasic/Process.swift +++ b/Sources/TSCBasic/Process.swift @@ -326,6 +326,7 @@ public final class Process: ObjectIdentifierProtocol { _process = Foundation.Process() _process?.arguments = arguments _process?.executableURL = URL(fileURLWithPath: arguments[0]) + _process?.environment = environment if outputRedirection.redirectsOutput { let stdoutPipe = Pipe()