Update commandManager.py
This commit is contained in:
parent
ac476be152
commit
60ebdfd2bb
@ -7,6 +7,7 @@
|
|||||||
import glob, os, time, inspect
|
import glob, os, time, inspect
|
||||||
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
|
||||||
fenrirPath = os.path.dirname(currentdir)
|
fenrirPath = os.path.dirname(currentdir)
|
||||||
|
|
||||||
from core import debug
|
from core import debug
|
||||||
from utils import module_utils
|
from utils import module_utils
|
||||||
|
|
||||||
@ -77,7 +78,7 @@ class commandManager():
|
|||||||
if not scriptPath.endswith('/'):
|
if not scriptPath.endswith('/'):
|
||||||
scriptPath += '/'
|
scriptPath += '/'
|
||||||
if not os.path.exists(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/'
|
scriptPath = fenrirPath +'/../../config/scripts/'
|
||||||
else:
|
else:
|
||||||
self.env['runtime']['debug'].writeDebugOut("scriptpath not exists:" + scriptPath ,debug.debugLevel.WARNING)
|
self.env['runtime']['debug'].writeDebugOut("scriptpath not exists:" + scriptPath ,debug.debugLevel.WARNING)
|
||||||
|
Loading…
Reference in New Issue
Block a user