I am new to python and am learning things by writing scripts. I have tried the following and none of them seem to be working.
1) commands.getoutput('module load xxx')
2) subprocess.check_output(['module load', xxx'])
None of these change the environment as a side effect of the module
call. Can someone tell me what is wrong?