def get_object_from_path(path):
try:<EOL><INDENT>return sys.IMPORT_CACHE[path]<EOL><DEDENT>except KeyError:<EOL><INDENT>_path = path.split('<STR_LIT:.>')<EOL>module_path = '<STR_LIT:.>'.join(_path[:-<NUM_LIT:1>])<EOL>class_name = _path[-<NUM_LIT:1>]<EOL>module = importlib.import_module(module_path)<EOL>sys.IMPORT_CACHE[path] = getattr(module, class_name)<EOL>return sys.IMPORT_CACHE[path]<EOL><DEDENT>
Import's object from given Python path.