import sys import importlib sys.path.append('../sri-pysdk') methods = importlib.import_module(f"xlib") class Global(object): pb = importlib.import_module(f"protobuf.protocol_pb2") # --- 业务数据数据库 --- mdb = importlib.import_module(f"xclient.xmongo").Client(host='127.0.0.1', port=47017, database='bg', username='admin', password='admin')