pyrtc.component_loading

Resolution of component classes from config names and file paths.

Both the config validator and the runtime manager accept components either as importable dotted names (pyrtc.loop.Loop), bare registry names (SyntheticSHWFS), or an explicit class_file path. This module is the single implementation of that lookup so every caller resolves to the same class object — exec’ing duplicate copies of a module produces distinct class objects that break descriptor lookups and isinstance checks.

Functions

canonical_pyrtc_module_name(module_path)

Map a file inside the loaded pyrtc package to its module name.

import_symbol(path_or_name)

Resolve a dotted import path or a bare pyrtc component name to an object.

import_symbol_from_file(file_path, attr_name)

Load attr_name from a Python file, preferring canonical modules.

resolve_class_symbol(class_name[, class_file])

Resolve a component class from config class_name / class_file.