o
    d                     @   sJ   d Z ddlmZ ddlmZ ddlZddlZeeZ	e
 ZdddZdS )	zO
Stand-alone module to provide information about whether optional deps exist.

    )absolute_import)import_moduleNTc              
   C   s   | t jv r
t j|  S |sdS | tvrHzt| W S  ty&   t|  Y dS  tyG } zt|  d|  }t| W Y d}~dS d}~ww dS )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_not_importabler   ImportErroradd	Exceptionlogger	exception)nameshould_loademsg r   c/var/www/html/visualizacion-main/env/lib/python3.10/site-packages/_plotly_utils/optional_imports.py
get_module   s    
	



r   )T)__doc__
__future__r   	importlibr   loggingr   	getLogger__name__r
   setr   r   r   r   r   r   <module>   s    
