Update the class name in the single command loader and import the debug function which it uses

pull/1/head
Mark Veidemanis 5 years ago
parent 2d70d5af11
commit 006f8db6f6

@ -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])

Loading…
Cancel
Save