|
@@ -15,21 +15,25 @@ 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
|
|
|
+# 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')
|
|
|
+
|
|
|
|
|
|
# --- 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")
|
|
|
+# protobuf = importlib.import_module(f"xprotobuf.protocol_pb2")
|
|
|
+# methods = importlib.import_module(f"xlib")
|
|
|
+import protocol_pb2 as protobuf
|
|
|
+
|
|
|
+
|
|
|
+# --- 服务地址
|
|
|
+# host, port = '127.0.0.1', 20916
|
|
|
+# host, port = '127.0.0.1', 20917
|
|
|
+# host, port = '172.18.74.154', 20918 # 湛江
|
|
|
+host, port = '10.10.60.237', 20918 # SRI内网
|
|
|
|
|
|
|
|
|
def test():
|