Dec-06-2016, 02:27 PM
hi, I am trying it in python in this way
# set the test Environment
SAM_HOME = "/opt/test"
if os.path.exists("~sam/bin/test"):
SAM_HOME = "~sam"
os.system(". " + SAM_HOME + "/bin/test")
os.system(". " + SAM_HOME + "/bin/session")
# set the test Environment
SAM_HOME = "/opt/test"
if os.path.exists("~sam/bin/test"):
SAM_HOME = "~sam"
os.system(". " + SAM_HOME + "/bin/test")
os.system(". " + SAM_HOME + "/bin/session")