diff options
author | Greg Becker <becker33@llnl.gov> | 2019-11-26 18:09:24 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-11-26 17:09:24 -0800 |
commit | 1450c30656ad491b01d5a7e5ed29816fe1d1970d (patch) | |
tree | 0b4375afebef9130386c3b9c80c6bc9783cb5131 | |
parent | ad1ad83664d25057983542be9744eebfce189fed (diff) | |
download | spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.tar.gz spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.tar.bz2 spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.tar.xz spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.zip |
use semicolons instead of newlines in module/python command (#13904)
-rw-r--r-- | lib/spack/spack/util/module_cmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/util/module_cmd.py b/lib/spack/spack/util/module_cmd.py index 75f61a6466..4ff6b0de43 100644 --- a/lib/spack/spack/util/module_cmd.py +++ b/lib/spack/spack/util/module_cmd.py @@ -17,7 +17,7 @@ import llnl.util.tty as tty # This list is not exhaustive. Currently we only use load and unload # If we need another option that changes the environment, add it here. module_change_commands = ['load', 'swap', 'unload', 'purge', 'use', 'unuse'] -py_cmd = "'import os\nimport json\nprint(json.dumps(dict(os.environ)))'" +py_cmd = "'import os;import json;print(json.dumps(dict(os.environ)))'" # This is just to enable testing. I hate it but we can't find a better way _test_mode = False |