
    kj\                     .    d dl mZ d dlmZ dedefdZdS )    )import_module)Anydotted_pathreturnc                    	 |                      dd          \  }}n%# t          $ r}t          d| z            |d}~ww xY wt          |          }	 t	          ||          S # t
          $ r}t          d|d|d          |d}~ww xY w)a  
    Import a dotted module path and return the attribute/class designated by the
    last name in the path. Raise ImportError if the import failed.

    Args:
        dotted_path: The path to attempt importing

    Returns:
        Imported class/attribute
    .   z"%s doesn't look like a module pathNzModule "z" does not define a "z" attribute/class)rsplit
ValueErrorImportErrorr   getattrAttributeError)r   module_path
class_nameerrmodules        _/home/agentuser/manim-venv/lib/python3.11/site-packages/moderngl_window/utils/module_loading.pyimport_stringr      s    W"-"4"4S!"<"<ZZ W W W>LMMSVVW ;''Fvz***   kDOKKQ[Q[Q[\
 
	s(    
>9>A! !
B+BBN)	importlibr   typingr   strr        r   <module>r      sU    # # # # # #      s s      r   