Keep users environment in the spack setup script (spconfig.py). This is important to avoid breaking things that require module loads to work; for example, non-activate Python packages.

This commit is contained in:
Elizabeth Fischer 2016-05-05 17:47:41 -04:00
parent 2243de9e2f
commit 6a48385111

View File

@ -1552,7 +1552,8 @@ def install_spconfig(self):
def cmdlist(str):
return list(x.strip().replace("'",'') for x in str.split('\n') if x)
env = dict()
#env = dict()
env = dict(os.environ)
""" % sys.executable)
env_vars = sorted(list(env.keys()))