aboutsummaryrefslogtreecommitdiff
path: root/bot/_bs/load.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/_bs/load.py')
-rw-r--r--bot/_bs/load.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/_bs/load.py b/bot/_bs/load.py
new file mode 100644
index 0000000..914a3cb
--- /dev/null
+++ b/bot/_bs/load.py
@@ -0,0 +1,9 @@
+import importlib
+import pathlib
+
+
+def load(what: str):
+ return importlib.import_module('bot.' + what)
+
+
+base_path = pathlib.Path(__file__).parent.parent.absolute()