os.execv()

os.execv(path, args)

Execute an executable path with arguments, replacing current process.

path: path of executable file args: tuple or list of strings