hub.py 555 B

123456789101112131415161718192021
  1. import sys
  2. import importlib
  3. sys.path.append('../sri-pysdk')
  4. methods = importlib.import_module(f"xlib")
  5. protobuf = importlib.import_module(f"xprotobuf.protocol_pb2")
  6. class Global(object):
  7. """
  8. """
  9. # ---服务端口
  10. egoserver_port = 20918
  11. pb = importlib.import_module(f"protobuf.protocol_pb2")
  12. # --- 业务数据数据库 ---
  13. mdb = importlib.import_module(f"xclient.xmongo").Client(host='127.0.0.1', port=47017, database='bg',
  14. username='admin', password='admin')