testing: Use ProcessInfo As Static Variable
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ typealias TestContentRecord = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func findPathEnv() -> [URL]? {
|
func findPathEnv() -> [URL]? {
|
||||||
for (key, value) in ProcessInfo().environment {
|
for (key, value) in ProcessInfo.processInfo.environment {
|
||||||
if key == "PATH" {
|
if key == "PATH" {
|
||||||
return value.split(separator: ":").map { URL(filePath: "\($0)") }
|
return value.split(separator: ":").map { URL(filePath: "\($0)") }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user