MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / new_execl

Function new_execl

_pydev_bundle/pydev_monkey.py:717–729  ·  view source on GitHub ↗

os.execl(path, arg0, arg1, ...) os.execle(path, arg0, arg1, ..., env) os.execlp(file, arg0, arg1, ...) os.execlpe(file, arg0, arg1, ..., env)

(path, *args)

Source from the content-addressed store, hash-verified

715
716def 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

Callers

nothing calls this directly

Calls 4

_get_apply_arg_patchingFunction · 0.85
patch_argsFunction · 0.85

Tested by

no test coverage detected