def has_session(sess_name):
    """check if a session exists already"""
    cmd = (CMD_HAS_SESSION%sess_name).split(config.CMD_SEP)
    return util.cmd_return_code(cmd) == 0
dataset/ETHPy150Open sk1418/retmux/tmuxbk/cmd.py/has_session/original