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:
parent
2243de9e2f
commit
6a48385111
@ -1552,7 +1552,8 @@ def install_spconfig(self):
|
|||||||
|
|
||||||
def cmdlist(str):
|
def cmdlist(str):
|
||||||
return list(x.strip().replace("'",'') for x in str.split('\n') if x)
|
return list(x.strip().replace("'",'') for x in str.split('\n') if x)
|
||||||
env = dict()
|
#env = dict()
|
||||||
|
env = dict(os.environ)
|
||||||
""" % sys.executable)
|
""" % sys.executable)
|
||||||
|
|
||||||
env_vars = sorted(list(env.keys()))
|
env_vars = sorted(list(env.keys()))
|
||||||
|
Loading…
Reference in New Issue
Block a user