def SegByBase(base):
    sel = idaapi.find_selector(base)
    seg = idaapi.get_segm_by_sel(sel)

    if seg:
        return seg.startEA
    else:
        return BADADDR
Get segment by segment base
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/SegByBase