Skip to content

Commit

Permalink
Fail if env variable not found
Browse files Browse the repository at this point in the history
  • Loading branch information
haal authored and mhamilton723 committed Oct 7, 2018
1 parent a9e5c43 commit a0332fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/env/src/main/scala/EnvironmentUtils.scala
Expand Up @@ -18,7 +18,7 @@ object EnvironmentUtils {
val nvsmicmd = if (IsWindows) {
// Unlikely nvidia is on the path
val nvsmi = Paths.get(
sys.env.getOrElse("ProgramFiles", null),
sys.env("ProgramFiles"),
"NVIDIA Corporation",
"NVSMI",
"nvidia-smi.exe").toAbsolutePath.toString
Expand Down

0 comments on commit a0332fb

Please sign in to comment.