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
def items(cls): return get_object_members(cls)
def items(cls): return get_object_members(ManifestFileType)