summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbecker33 <becker33@llnl.gov>2017-06-21 16:33:11 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-06-21 18:33:11 -0500
commit689c1d2f0c432de7090dea593c90d7ffd6741a7d (patch)
treefaeb54551f4593e7c8ac2c5b8c4fdf57d32bc24f /lib
parenta1131011263c086042ec24748e518d6e2b16b5f8 (diff)
downloadspack-689c1d2f0c432de7090dea593c90d7ffd6741a7d.tar.gz
spack-689c1d2f0c432de7090dea593c90d7ffd6741a7d.tar.bz2
spack-689c1d2f0c432de7090dea593c90d7ffd6741a7d.tar.xz
spack-689c1d2f0c432de7090dea593c90d7ffd6741a7d.zip
fix issue #4577 (#4579)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/executable.py2
1 files changed, 1 insertions, 1 deletions
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):