daemon: reverting adjustment for executing scripts for corehandler specific logic

This commit is contained in:
Blake Harnden 2021-11-18 09:19:31 -08:00
parent 9da64af79b
commit 5ff4447528

View file

@ -3,6 +3,7 @@ socket server request handlers leveraged by core servers.
"""
import logging
import shlex
import shutil
import socketserver
import sys
@ -937,6 +938,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
old_session_ids = set()
if message.flags & MessageFlags.STRING.value:
old_session_ids = set(self.coreemu.sessions.keys())
sys.argv = shlex.split(execute_server)
file_path = Path(sys.argv[0])
if file_path.suffix == ".xml":
session = self.coreemu.create_session()