def GetProcessName(idx):
    pinfo = idaapi.process_info_t()
    pid = idaapi.get_process_info(idx, pinfo)
    return None if pid == idaapi.NO_PROCESS else pinfo.name
Get the name of a running process
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetProcessName