def process_target_api(): cmd = [ "%s" % sys.executable, "%s/manage.py" % TestAPIGunicornScheduler.project_path, "gunicorn" ] os.execve(cmd[0], cmd, os.environ)