added utility method to replace execfile for python2/3 support

This commit is contained in:
Blake Harnden 2019-06-21 09:29:19 -07:00
parent ca28920e2d
commit 05c6233908
2 changed files with 22 additions and 1 deletions

View file

@ -859,7 +859,7 @@ class CoreHandler(socketserver.BaseRequestHandler):
raise
else:
thread = threading.Thread(
target=execfile,
target=utils.execute_file,
args=(file_name, {"__file__": file_name, "coreemu": self.coreemu})
)
thread.daemon = True