示例#1
0
文件: resource.py 项目: timm/timmnix
def _setup():
    all_constants = []
    p = lib.my_rlimit_consts
    while p.name:
        name = ffi.string(p.name).decode()
        globals()[name] = int(p.value)
        all_constants.append(name)
        p += 1
    return all_constants
示例#2
0
def _setup():
    all_constants = []
    p = lib.my_rlimit_consts
    while p.name:
        name = ffi.string(p.name)
        globals()[name] = int(p.value)
        all_constants.append(name)
        p += 1
    return all_constants