This is the python code:
#!/tool/pandora64/bin/python2.7.5
import os
shellFileName = "envVaribles.sh"
startUpFilePath = 'source /proj/pdkfc8/users/srikumar/phython/testEnv/' + shellFileName
print(startUpFilePath)
os.system(startUpFilePath)
This is the bash script:
#!/bin/bash
module load cadenceICOA
module load calibre
When I tried to load the bash script from the terminal (source bash file) it is working fine.
When I tried to load using python code it is saying module: command not found
.