diff options
author | Elizabeth Fischer <elizabeth.fischer@columbia.edu> | 2016-05-05 17:47:41 -0400 |
---|---|---|
committer | Elizabeth Fischer <elizabeth.fischer@columbia.edu> | 2016-05-05 17:48:24 -0400 |
commit | 6a48385111a383b2bb96f225e6eb1174376402dd (patch) | |
tree | 5594264fbb024495e0d48cf5ede869b093f22912 | |
parent | 2243de9e2f6e81aaccdeef8d4ccfebd5caa2be04 (diff) | |
download | spack-6a48385111a383b2bb96f225e6eb1174376402dd.tar.gz spack-6a48385111a383b2bb96f225e6eb1174376402dd.tar.bz2 spack-6a48385111a383b2bb96f225e6eb1174376402dd.tar.xz spack-6a48385111a383b2bb96f225e6eb1174376402dd.zip |
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.
-rw-r--r-- | lib/spack/spack/package.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index ceb1a499a5..959e618005 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1552,7 +1552,8 @@ import subprocess 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())) |