From 5d1e93e903cc53edd16dee201f48fa09024a71a0 Mon Sep 17 00:00:00 2001 From: Baptist BENOIST Date: Mon, 23 Mar 2015 14:03:40 +0100 Subject: [PATCH] Use Environment.SystemDirectory to retrieve the system's root directory Thus, does not exclusively works on Windows. --- src/app/FakeLib/EnvironmentHelper.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/FakeLib/EnvironmentHelper.fs b/src/app/FakeLib/EnvironmentHelper.fs index a92de04427a..dab7f504260 100644 --- a/src/app/FakeLib/EnvironmentHelper.fs +++ b/src/app/FakeLib/EnvironmentHelper.fs @@ -83,7 +83,7 @@ let ProgramFilesX86 = |> fun detected -> if detected = null then @"C:\Program Files (x86)\" else detected /// The system root environment variable. Typically "C:\Windows" -let SystemRoot = environVar "SystemRoot" +let SystemRoot = Environment.SystemDirectory /// Determines if the current system is an Unix system let isUnix = Environment.OSVersion.Platform = PlatformID.Unix