Consistent docs and usage of env mod methods (#3351)

This commit is contained in:
Adam J. Stewart
2017-03-15 00:26:44 -05:00
committed by Todd Gamblin
parent 560d28ac7f
commit dca4d2b15e
26 changed files with 123 additions and 143 deletions

View File

@@ -53,8 +53,8 @@ def install(self, spec, prefix):
# In theory the 'run' dependency on 'jdk' above should take
# care of this for me. In practice, it does not.
def setup_environment(self, spack_env, env):
def setup_environment(self, spack_env, run_env):
"""Add <prefix> to the path; the package has a script at the
top level.
"""
env.prepend_path('PATH', join_path(self.spec['jdk'].prefix, 'bin'))
run_env.prepend_path('PATH', join_path(self.spec['jdk'].prefix, 'bin'))