os.execvpe()

os.execvpe(file, args, env)[source]

Execute the executable file (which is searched for along $PATH) with argument list args and environment env , replacing the current process. args may be a list or tuple of strings.