From 60ebdfd2bb2f63c45084315a825ea4cb8c01e484 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Tue, 25 Jul 2017 14:59:41 +0200 Subject: [PATCH] Update commandManager.py --- src/fenrir/core/commandManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrir/core/commandManager.py b/src/fenrir/core/commandManager.py index 24e91caa..9663301d 100644 --- a/src/fenrir/core/commandManager.py +++ b/src/fenrir/core/commandManager.py @@ -7,6 +7,7 @@ import glob, os, time, inspect currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))) fenrirPath = os.path.dirname(currentdir) + from core import debug from utils import module_utils @@ -77,7 +78,7 @@ class commandManager(): if not scriptPath.endswith('/'): scriptPath += '/' if not os.path.exists(scriptPath): - if os.path.exists(fenrirPath) +'/../../config/scripts/'): + if os.path.exists(fenrirPath +'/../../config/scripts/'): scriptPath = fenrirPath +'/../../config/scripts/' else: self.env['runtime']['debug'].writeDebugOut("scriptpath not exists:" + scriptPath ,debug.debugLevel.WARNING)