def CompileEx(input, isfile):
    if isfile:
        res = idaapi.Compile(input)
    else:
        res = idaapi.CompileLine(input)

    if res:
        return res
    else:
        return 0
Compile an IDC script
dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/CompileEx