Пример #1
0
def load_monitor_filter(path, options=None):
    name = os.path.basename(path)
    name = name[:name.find(".")]
    module = load_python_module("platformio.commands.device.filters.%s" % name,
                                path)
    for cls in get_object_members(module).values():
        if (not inspect.isclass(cls)
                or not issubclass(cls, DeviceMonitorFilter)
                or cls == DeviceMonitorFilter):
            continue
        obj = cls(options)
        miniterm.TRANSFORMATIONS[obj.NAME] = obj
    return True
Пример #2
0
 def items(cls):
     return get_object_members(cls)
Пример #3
0
 def items(cls):
     return get_object_members(ManifestFileType)