From 689c1d2f0c432de7090dea593c90d7ffd6741a7d Mon Sep 17 00:00:00 2001 From: becker33 Date: Wed, 21 Jun 2017 16:33:11 -0700 Subject: fix issue #4577 (#4579) --- lib/spack/spack/util/executable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/util/executable.py b/lib/spack/spack/util/executable.py index 0aec84b1d0..4222a48b82 100644 --- a/lib/spack/spack/util/executable.py +++ b/lib/spack/spack/util/executable.py @@ -239,7 +239,7 @@ def which(*args, **kwargs): Returns: Executable: The first executable that is found in the path """ - path = kwargs.get('path', os.environ.get('PATH')) + path = kwargs.get('path', os.environ.get('PATH', '')) required = kwargs.get('required', False) if isinstance(path, string_types): -- cgit v1.2.3-70-g09d2