mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-29 04:24:43 +00:00
fix socket connection problems
This commit is contained in:
parent
fa5bb4f615
commit
b76d63f9a5
6 changed files with 52 additions and 30 deletions
|
@ -28,9 +28,10 @@ while True:
|
|||
__sys.stdout = __io.StringIO()
|
||||
try:
|
||||
if __already_loaded:
|
||||
__res = str(exec('__importlib.reload(o)'))
|
||||
# __MODULE__ will be replaced with module name
|
||||
__res = str(exec('__importlib.reload(__MODULE__)'))
|
||||
else:
|
||||
__res = str(exec('import o'))
|
||||
__res = str(exec('import __MODULE__'))
|
||||
except SystemExit:
|
||||
__client_socket.send('[Exception] SystemExit'.encode())
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue