summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-08-15 10:49:09 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-08-15 10:57:15 -0700
commit4f8167b7ed8fe156e1f350aaa37230ab07a27895 (patch)
tree70f9afdcaee72305852c609fcf330c6d7b98c8fb
parent164da8eed115394dab3713930348b1112e544fb2 (diff)
downloadspack-4f8167b7ed8fe156e1f350aaa37230ab07a27895.tar.gz
spack-4f8167b7ed8fe156e1f350aaa37230ab07a27895.tar.bz2
spack-4f8167b7ed8fe156e1f350aaa37230ab07a27895.tar.xz
spack-4f8167b7ed8fe156e1f350aaa37230ab07a27895.zip
Don't assume spack is in the path when building docs.
-rw-r--r--lib/spack/docs/conf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py
index 3d2a8251aa..f3cb268177 100644
--- a/lib/spack/docs/conf.py
+++ b/lib/spack/docs/conf.py
@@ -51,7 +51,8 @@ os.environ['SPACK_ROOT'] = spack_root
os.environ['PATH'] += os.pathsep + '$SPACK_ROOT/bin'
spack_version = subprocess.Popen(
- ['spack', '-V'], stderr=subprocess.PIPE).communicate()[1].strip().split('.')
+ [spack_root + '/bin/spack', '-V'],
+ stderr=subprocess.PIPE).communicate()[1].strip().split('.')
# Set an environment variable so that colify will print output like it would to
# a terminal.