aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
Diffstat (limited to 'klippy')
-rw-r--r--klippy/klippy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/klippy/klippy.py b/klippy/klippy.py
index e7588349..588666f6 100644
--- a/klippy/klippy.py
+++ b/klippy/klippy.py
@@ -189,7 +189,9 @@ class Printer:
module_name = module_parts[0]
py_name = os.path.join(os.path.dirname(__file__),
'extras', module_name + '.py')
- if not os.path.exists(py_name):
+ py_dirname = os.path.join(os.path.dirname(__file__),
+ 'extras', module_name, '__init__.py')
+ if not os.path.exists(py_name) and not os.path.exists(py_dirname):
return None
mod = importlib.import_module('extras.' + module_name)
init_func = 'load_config'