From 006f8db6f66dee28212ed59c1641cebf41d1db62 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sun, 25 Aug 2019 23:12:51 +0100 Subject: [PATCH] Update the class name in the single command loader and import the debug function which it uses --- utils/loaders/single_loader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/loaders/single_loader.py b/utils/loaders/single_loader.py index 3d891e2..dc28252 100644 --- a/utils/loaders/single_loader.py +++ b/utils/loaders/single_loader.py @@ -2,6 +2,7 @@ from os import listdir from importlib import reload from sys import modules +from utils.logging.debug import debug from utils.logging.log import * import commands @@ -9,7 +10,7 @@ from main import CommandMap def loadSingle(commandName): if commandName+".py" in listdir("commands"): - className = commandName.capitalize() + className = commandName.capitalize()+"Command" try: if commandName in CommandMap.keys(): reload(modules["commands."+commandName])