From f4bfce260a2ea38209646957d7c423db5bb54faa Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 3 Feb 2018 12:53:11 -0500 Subject: klippy: Introduce load_config_prefix() for modules that take parameters Use both load_config() and load_config_prefix() functions when dynamically loading a module from the extras directory - if the config section name has parameters in it then use load_config_prefix(). Signed-off-by: Kevin O'Connor --- klippy/extras/probe.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'klippy/extras/probe.py') diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index 084612fe..05634139 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -172,6 +172,4 @@ def coordinate_descent(adj_params, params, error_func): return params def load_config(config): - if config.get_name() != 'probe': - raise config.error("Invalid probe config name") return PrinterProbe(config) -- cgit v1.2.3-70-g09d2