# Pastebin MJMIUyb9 import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.getenv('LD_LIBRARY_PATH', '') + ':' + os.getcwd()) os.environ['LD_LIBRARY_PATH'] = os.getenv('LD_LIBRARY_PATH', '') + ':' + os.getcwd() import registerDevice_ext assert 'registerDevice' in dir(registerDevice_ext) assert callable(registerDevice_ext.registerDevice) status_code = registerDevice_ext.registerDevice('cdcdcdcdcd', 'dummy_device_id')