summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2019-11-26 18:09:24 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-11-26 17:09:24 -0800
commit1450c30656ad491b01d5a7e5ed29816fe1d1970d (patch)
tree0b4375afebef9130386c3b9c80c6bc9783cb5131 /lib
parentad1ad83664d25057983542be9744eebfce189fed (diff)
downloadspack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.tar.gz
spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.tar.bz2
spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.tar.xz
spack-1450c30656ad491b01d5a7e5ed29816fe1d1970d.zip
use semicolons instead of newlines in module/python command (#13904)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/util/module_cmd.py2
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