Skip to content

Commit

Permalink
Use Environment.SystemDirectory to retrieve the system's root directory
Browse files Browse the repository at this point in the history
Thus, does not exclusively works on Windows.
  • Loading branch information
bbenoist committed Mar 24, 2015
1 parent e901881 commit 5d1e93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/FakeLib/EnvironmentHelper.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5d1e93e

Please sign in to comment.