def command_attach_session(args):
    commands = []
    ctext = ' '.join(args.session_name)

    t = Server(
        socket_name=args.socket_name,
        socket_path=args.socket_path,
        colors=args.colors
    )

    try:
        session = next((s for s in t.sessions if s.get(
            'session_name') == ctext), None)
        if not session:
            raise exc.TmuxpException('Session not found.')
    except exc.TmuxpException as e:
        print(e)
        return

    if 'TMUX' in os.environ:
        del os.environ['TMUX']
        session.switch_client()
        print('Inside tmux client, switching client.')
    else:
        session.attach_session()
        print('Attaching client.')
Scan for and add paths to the include path
dataset/ETHPy150Open tony/tmuxp/tmuxp/cli.py/command_attach_session--crossover with--dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/utils/classes.py/load_include_path