""" echo "执行:进入调试" \ && project_path="/home/sri/repositories/repositories/sri-project.demo-py/sri-dino-pyserver01" \ && cd ${project_path} \ && sudo docker exec -it sri-dino-pyserver01 bash python3 /home/sri/repositories/repositories/sri-project.demo-py/sri-dino-pyserver01/lib/ConnectionTest.py """ import socket import struct import traceback import time import sys import importlib # --- for linux sys.path.append('/home/sri/repositories/repositories/sri-project.demo-py/sri-dino-pyserver01') sys.path.append('/home/sri/repositories/repositories/sri-project.demo-py/3rdparty') # host, port = '127.0.0.1', 20916 host, port = '127.0.0.1', 20917 # --- for windows # sys.path.append(r'E:\casper\repositories\repositories\sri-project.demo-py\sri-server-bg03') # sys.path.append(r'E:\casper\repositories\repositories\sri-project.demo-py\3rdparty') # host, port = '58.34.94.178', 20916 # host, port = '58.34.94.178', 20916 # host, port = '58.34.94.178', 20917 # --- import protobuf = importlib.import_module(f"xprotobuf.protocol_pb2") methods = importlib.import_module(f"xlib") def test(): head_sequence = '