def GetProcessPid(idx):
    pinfo = idaapi.process_info_t()
    pid = idaapi.get_process_info(idx, pinfo)
    if pid != idaapi.NO_PROCESS:
        return pinfo.pid
    else:
        return 0
Same as info, but displays a nice counter
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/GetProcessPid--crossover with--dataset/ETHPy150Open aldebaran/qibuild/python/qisys/ui.py/info_count