linkkf 로직수정중
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import traceback
|
||||
|
||||
from . import logger
|
||||
|
||||
|
||||
@@ -20,4 +22,16 @@ class ToolUtil(object):
|
||||
def make_path(cls, data):
|
||||
from framework import F
|
||||
return data.replace('{PATH_DATA}', F.config['path_data'])
|
||||
|
||||
|
||||
|
||||
@classmethod
|
||||
def run_system_command_by_id(cls, command_id):
|
||||
try:
|
||||
from system.setup import P as PP
|
||||
page_ins = PP.logic.get_module('tool').get_page('command')
|
||||
thread = page_ins.execute_thread_start(command_id)
|
||||
return thread
|
||||
except Exception as e:
|
||||
logger.error(f'Exception:{str(e)}')
|
||||
logger.error(traceback.format_exc())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user