use semicolons instead of newlines in module/python command (#13904)

This commit is contained in:
Greg Becker 2019-11-26 18:09:24 -07:00 committed by Todd Gamblin
parent 9c5b583508
commit fba963f1d1
No known key found for this signature in database
GPG key ID: 66B24B9050FDD0B8

View file

@ -17,7 +17,7 @@
# 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