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