import subprocess ret = subprocess.check_output("git pull", shell=True, cwd="/sls/rf/data/SLS_Teststand/PShell/sls_archiver") set_return(ret)