From ef16367a12c443dacbcbd09e8ad3876a903e1da0 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Sat, 14 Dec 2019 05:18:04 +0100 Subject: [PATCH] Revert "Add class to run a single module" This reverts commit 0b341f411fb508494b8a449b38c5254a3c0caefa. --- SingleModuleRunner.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 SingleModuleRunner.py diff --git a/SingleModuleRunner.py b/SingleModuleRunner.py deleted file mode 100644 index 063a01b..0000000 --- a/SingleModuleRunner.py +++ /dev/null @@ -1,18 +0,0 @@ -import os -import importlib - - -def run_module(name): - for folder in os.listdir("./modules"): - if folder == name: - print("Module found: " + folder) - curr_module = importlib.import_module('.' + folder, package="modules") - print("Try to load module: " + folder) - instance = curr_module.get_module() - print("Module loaded successfully: " + folder) - instance.get_command() - return - raise FileNotFoundError("The specified module was not found.") - - -run_module(input("Please specify module: "))