fix scriptkey

This commit is contained in:
chrys 2017-04-17 23:32:06 +02:00
parent 28fccf3a33
commit 6548519e2e

View File

@ -93,9 +93,9 @@ class commandManager():
fileName = fileName.split('/')[-1]
if fileName.startswith('__'):
continue
if self.env['commands'][section][fileName.upper()]:
if fileName.upper() in self.env['commands'][section]:
continue
command_mod = module_utils.importModule(fileName ,subCommand)
command_mod = module_utils.importModule(fileName ,subCommand)
self.env['commands'][section][fileName.upper()] = command_mod.command()
self.env['commands'][section][fileName.upper()].initialize(self.env,command)
self.env['runtime']['debug'].writeDebugOut("Load script:" + section + "." + fileName.upper() ,debug.debugLevel.INFO, onAnyLevel=True)