separate stdout and stderr for module loading (#6713)
This commit is contained in:
parent
f2e061debf
commit
feb4f1b387
1 changed files with 4 additions and 1 deletions
|
@ -133,7 +133,10 @@ def load_module(mod):
|
|||
exec(compile(modulecmd('unload', text[i + 1], output=str,
|
||||
error=str), '<string>', 'exec'))
|
||||
# Load the module now that there are no conflicts
|
||||
load = modulecmd('load', mod, output=str, error=str)
|
||||
# Some module systems use stdout and some use stderr
|
||||
load = modulecmd('load', mod, output=str, error='/dev/null')
|
||||
if not load:
|
||||
load = modulecmd('load', mod, error=str)
|
||||
exec(compile(load, '<string>', 'exec'))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue