Dec-05-2016, 05:17 PM
Hi I am trying to convert a shell script to python. In shell script they are setting the Environment I don't know how to do that using the python here is the sample from the shell script.
# set the test Environment
SAM_HOME=/opt/test
[ -f "~sam/bin/testenv" ] && SAM_HOME=~sam
. $SAM_HOME/bin/testenv
. $SAM_HOME/bin/session
# set the test Environment
SAM_HOME=/opt/test
[ -f "~sam/bin/testenv" ] && SAM_HOME=~sam
. $SAM_HOME/bin/testenv
. $SAM_HOME/bin/session