#NEWLINE# def dynamic_class_import( class_path ) : #NEWLINE# #INDENT# '\n        Will dynamically import a class from a string path\n        :param class_path: string with class path\n        :return: class\n    ' #NEWLINE# try : #NEWLINE# #INDENT# tmp = class_path . split ( '.' ) #NEWLINE# module_path = '.' . join ( tmp [ 0 : ( - 1 ) ] ) #NEWLINE# package = __import__ ( module_path ) #NEWLINE# return reduce ( getattr , tmp [ 1 : ] , package ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# log . error ( LOGMSG_ERR_FAB_ADDON_IMPORT . format ( class_path , e ) )