fix scriptkey

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

View File

@ -93,7 +93,7 @@ class commandManager():
fileName = fileName.split('/')[-1] fileName = fileName.split('/')[-1]
if fileName.startswith('__'): if fileName.startswith('__'):
continue continue
if self.env['commands'][section][fileName.upper()]: if fileName.upper() in self.env['commands'][section]:
continue 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()] = command_mod.command()