From 1450c30656ad491b01d5a7e5ed29816fe1d1970d Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Tue, 26 Nov 2019 18:09:24 -0700 Subject: use semicolons instead of newlines in module/python command (#13904) --- lib/spack/spack/util/module_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3-70-g09d2