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-12-01 20:21:34 -0800
commitfba963f1d10a7d725af3db4d449451003371fd23 (patch)
treef87cb3c95a4f8053a4f36d088046a4e0dfffa397 /lib
parent9c5b58350804b7179ae7f12fffb2a55fff626110 (diff)
downloadspack-fba963f1d10a7d725af3db4d449451003371fd23.tar.gz
spack-fba963f1d10a7d725af3db4d449451003371fd23.tar.bz2
spack-fba963f1d10a7d725af3db4d449451003371fd23.tar.xz
spack-fba963f1d10a7d725af3db4d449451003371fd23.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