When I use the linux shell I write module load numeca/open/61_numeca_mpi, I press enter, the program uploads the module licence, and then I write fine and press enter again. I wrote a Python script which does this.
import os
os.system("module load numeca/open/61_numeca_mpi")
os.system("fine")
It uploads the module licence but then it says
ERROR:105: Unable to locate a modulefile for 'fine'.
Any suggestions?
os.systemopens a new shell for each command, this means that thefineyou sent was in a different shell then the themodulecommand before it