From 6548519e2e97a1361507634af74a41e2625746ff Mon Sep 17 00:00:00 2001 From: chrys Date: Mon, 17 Apr 2017 23:32:06 +0200 Subject: [PATCH] fix scriptkey --- src/fenrir/core/commandManager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir/core/commandManager.py b/src/fenrir/core/commandManager.py index 5633e03d..d813a6c2 100644 --- a/src/fenrir/core/commandManager.py +++ b/src/fenrir/core/commandManager.py @@ -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)