Skip to content

Commit

Permalink
Don't assume spack is in the path when buildign docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgamblin committed Aug 15, 2016
1 parent 483e411 commit 1e673bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/spack/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
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.
Expand Down

0 comments on commit 1e673bf

Please sign in to comment.