Skip to content

Commit 7a3df0d

Browse files
committed
Skip socket base module in processor scan
Update processor package discovery to ignore `dlc_processor_socket` during namespace scanning, since it only provides the base class/registry and should not be listed as an available processor source. The package fallback scan now uses default class discovery behavior, and related outdated comments/docstring lines were cleaned up.
1 parent 599b062 commit 7a3df0d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎dlclivegui/processors/processor_utils.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def scan_processor_package(package_name: str = "dlclivegui.processors") -> dict[
125125
processors = mod.get_available_processors()
126126
else:
127127
# Fallback: scan for dlclive.Processor subclasses
128-
processors = discover_processor_classes(mod, only_defined_in_module=False)
128+
processors = discover_processor_classes(mod)
129129

130130
# Normalize into your “file::class” shape
131131
module_file = mod.__name__.split(".")[-1] + ".py"
@@ -176,7 +176,6 @@ def load_processors_from_file(file_path: str | Path):
176176
return processors
177177

178178
# Fallback path: discover subclasses of dlclive.Processor
179-
# here module only is disabled to allow classes re-exported in other modules to be discovered
180179
return discover_processor_classes(module, only_defined_in_module=False)
181180

182181
except Exception:

0 commit comments

Comments
 (0)