
    g                     ^    d Z ddlmZ ddlZddlZ ej
                  e      Z e       Z	ddZ
y)zO
Stand-alone module to provide information about whether optional deps exist.

    )import_moduleNc                 *   |s t         j                  j                  | d      S | t        vr	 t	        |       S y# t
        $ r t        j                  |        Y yt        $ r2 t        j                  |        d|  }t        j                  |       Y yw xY w)a
  
    Return module or None. Absolute import is required.

    :param (str) name: Dot-separated module path. E.g., 'scipy.stats'.
    :raise: (ImportError) Only when exc_msg is defined.
    :return: (module|None) If import succeeds, the module will be returned.

    Nz Error importing optional module )
sysmodulesget_not_importabler   ImportErroradd	Exceptionlogger	exception)nameshould_loadmsgs      [/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/_plotly_utils/optional_imports.py
get_moduler      s     {{tT**?"	" &&   	&%   	"%4TF;CS!	"s   
8 B7BB)T)__doc__	importlibr   loggingr   	getLogger__name__r   setr   r        r   <module>r      s3   
 $  
			8	$%r   