Rename some environment methods to be less repetitive, add set_path.

This commit is contained in:
Todd Gamblin
2016-03-21 02:21:31 -07:00
parent 439d47b4e4
commit b1516f64eb
8 changed files with 73 additions and 47 deletions

View File

@@ -104,8 +104,8 @@ def setup_dependent_environment(self, spack_env, run_env, extension_spec):
python_paths.append(os.path.join(d.prefix, self.site_packages_dir))
pythonpath = ':'.join(python_paths)
spack_env.set_env('PYTHONPATH', pythonpath)
run_env.set_env('PYTHONPATH', pythonpath)
spack_env.set('PYTHONPATH', pythonpath)
run_env.set('PYTHONPATH', pythonpath)
def modify_module(self, module, spec, ext_spec):