os.execl(path, arg0, arg1, ...) os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env)
(path, *args)
| 715 | |
| 716 | def create_execl(original_name): |
| 717 | def new_execl(path, *args): |
| 718 | """ |
| 719 | os.execl(path, arg0, arg1, ...) |
| 720 | os.execle(path, arg0, arg1, ..., env) |
| 721 | os.execlp(file, arg0, arg1, ...) |
| 722 | os.execlpe(file, arg0, arg1, ..., env) |
| 723 | """ |
| 724 | if _get_apply_arg_patching(): |
| 725 | args = patch_args(args, is_exec=True) |
| 726 | send_process_created_message() |
| 727 | send_process_about_to_be_replaced() |
| 728 | |
| 729 | return getattr(os, original_name)(path, *args) |
| 730 | |
| 731 | return new_execl |
| 732 |
nothing calls this directly
no test coverage detected