Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
JE-Chen committed Nov 2, 2022
1 parent ba5a2de commit 0568927
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
11 changes: 8 additions & 3 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions autocontrol_driver/generate_autocontrol_driver.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import sys

from je_auto_control import start_autocontrol_socket_server

try:
server = start_autocontrol_socket_server()
while not server.close_flag:
pass
else:
sys.exit(0)
except Exception as error:
print(repr(error))
Binary file not shown.
2 changes: 1 addition & 1 deletion dev_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="je_auto_control_dev",
version="0.0.41",
version="0.0.42",
author="JE-Chen",
author_email="zenmailman@gmail.com",
description="auto testing",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ def handle(self):
else:
try:
execute_str = json.loads(command_string)
for execute_function, execute_return in execute_action(execute_str).items():
socket.sendto(str(execute_return).encode("utf-8"), self.client_address)
socket.sendto("\n".encode("utf-8"), self.client_address)
if execute_str is not None:
for execute_function, execute_return in execute_action(execute_str).items():
socket.sendto(str(execute_return).encode("utf-8"), self.client_address)
socket.sendto("\n".encode("utf-8"), self.client_address)
else:
socket.sendto("No_Return_Data".encode("utf-8"), self.client_address)
socket.sendto("\n".encode("utf-8"), self.client_address)
socket.sendto("Return_Data_Over_JE".encode("utf-8"), self.client_address)
socket.sendto("\n".encode("utf-8"), self.client_address)
except Exception as error:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="je_auto_control",
version="0.0.107",
version="0.0.108",
author="JE-Chen",
author_email="zenmailman@gmail.com",
description="auto testing",
Expand Down

0 comments on commit 0568927

Please sign in to comment.