Skip to content

Commit 12fb703

Browse files
committed
Workspace: use ProcessEnv.path rather ProcessEnv.vars["PATH"]
The path environment variable spelt `Path` on Windows and `PATH` on Unicies (since most of Windows is case insensitive). This is already properly handled in swit-tools-support-core. Use the helper accessor rather than duplicate that knowledge here.
1 parent 6b9f18e commit 12fb703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Workspace/UserToolchain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public final class UserToolchain: Toolchain {
222222

223223
// Get the search paths from PATH.
224224
let searchPaths = getEnvSearchPaths(
225-
pathString: ProcessEnv.vars["PATH"], currentWorkingDirectory: localFileSystem.currentWorkingDirectory)
225+
pathString: ProcessEnv.path, currentWorkingDirectory: localFileSystem.currentWorkingDirectory)
226226

227227
self.envSearchPaths = searchPaths
228228

0 commit comments

Comments
 (0)