def create_execve(original_name):
    """
    os.execve(path, args, env)
    os.execvpe(file, args, env)
    """
    def new_execve(path, args, env):
        import os
        send_process_created_message()
        return getattr(os, original_name)(path, patch_args(args), env)
    return new_execve

    os.execve(path, args, env)
    os.execvpe(file, args, env)
    
debugger/src/_pydev_bundle/pydev_monkey.py