From 7c39e9afd310699f8f1d8efab2fffd28158f2be8 Mon Sep 17 00:00:00 2001 From: Deven Blake Date: Mon, 31 May 2021 15:02:35 -0400 Subject: [PATCH] Manual module loading/reloading --- it/src/load_module.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 it/src/load_module.py diff --git a/it/src/load_module.py b/it/src/load_module.py new file mode 100644 index 0000000..df02050 --- /dev/null +++ b/it/src/load_module.py @@ -0,0 +1,8 @@ +def main(buffer, command): + if len(command) == 1: + print("?") + else: + for module in command[1:]: + if buffer.import_module_(module): + print("Loaded %s" % module) + return buffer