Update the class name in the single command loader and import the debug function which it uses
This commit is contained in:
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…
Reference in New Issue