Reformat project

This commit is contained in:
2022-07-21 13:39:59 +01:00
parent 9d4d31fdc2
commit 760e43b59a
57 changed files with 523 additions and 218 deletions

View File

@@ -1,12 +1,11 @@
from os import listdir
from importlib import reload
import sys
from importlib import reload
from os import listdir
import commands
from main import CommandMap
from utils.logging.debug import debug
from utils.logging.log import *
import commands
from main import CommandMap
def loadSingle(commandName):
@@ -15,7 +14,9 @@ def loadSingle(commandName):
try:
if commandName in CommandMap.keys():
reload(sys.modules["commands." + commandName])
CommandMap[commandName] = getattr(sys.modules["commands." + commandName], className)
CommandMap[commandName] = getattr(
sys.modules["commands." + commandName], className
)
debug("Reloaded command: %s" % commandName)
return "RELOAD"
module = __import__("commands.%s" % commandName)