import sys import importlib sys.path.append('../3rdparty') methods = importlib.import_module(f"xlib") class Global(object): # --- 中间件服务器 --- emqx = importlib.import_module(f"xclient.xmqtt").Client(host='10.10.61.229', port=41883) aps = importlib.import_module(f"xpip.xapscheduler").APS(db_type='mongo', db_host='58.34.94.176', db_port=7030, username='admin', password='admin', database='bg', collection='LoopTask')