aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/__init__.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-01-19 21:25:58 -0500
committerKevin O'Connor <kevin@koconnor.net>2018-01-28 12:19:26 -0500
commit9399911490a8163ea40b14eac1431ff469eeaf3e (patch)
treee8cbbe8aec3070b0a88015f640b64fa376a0650b /klippy/extras/__init__.py
parentd3665699f168bc1b1413fa8dddba318d6adbdf87 (diff)
downloadkutter-9399911490a8163ea40b14eac1431ff469eeaf3e.tar.gz
kutter-9399911490a8163ea40b14eac1431ff469eeaf3e.tar.xz
kutter-9399911490a8163ea40b14eac1431ff469eeaf3e.zip
klippy: Add support for dynamic loading of python modules
Check if a config section matches a python filename in the klippy/extras/ directory. If it does, load that python code to handle the config section. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/__init__.py')
-rw-r--r--klippy/extras/__init__.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/klippy/extras/__init__.py b/klippy/extras/__init__.py
new file mode 100644
index 00000000..bd206ac5
--- /dev/null
+++ b/klippy/extras/__init__.py
@@ -0,0 +1,5 @@
+# Package definition for the extras directory
+#
+# Copyright (C) 2018 Kevin O'Connor <kevin@koconnor.net>
+#
+# This file may be distributed under the terms of the GNU GPLv3 license.