hub.py 495 B

12345678910111213141516171819
  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. # --- 业务数据数据库 ---
  12. mdb = importlib.import_module(f"xclient.xmongo").Client(host='127.0.0.1', port=47017, database='bg',
  13. username='admin', password='admin')