I have searched online a lot and failed to find the exact workaround for this question. My question is that I would like to call a customized function in python. Say, I have written a bash function in my .bashrc
`
cpput2(){
# 1 job name
# 2 hpss pat
# 3 filepath
bsub -N -n 1 -q hpss -W 24:00 -P CWWW0001 -J $1 hsi "cd $2; cput -R $3"
}
`
Is there any way to call it in python? os.system cannot find this function even I put it into my bashrc.