o
    oh                     @   sF   d dl Z d dlZd dlmZ d dlmZ eddddefdd	ZdS )
    N)StringIO)
deprecatedz
    The sympy.utilities.pkgdata module and its get_resource function are
    deprecated. Use the stdlib importlib.resources module instead.
    z1.12pkgdata)deprecated_since_versionactive_deprecations_targetc              	   C   s   t j| }t|dd }|d u rtdtjtj|| }t|dd }|d urBz||}W n tt	fy:   Y nw t
|dS ttj|dS )N__file__z%r has no __file__!
__loader__zutf-8rb)sysmodulesgetattrOSErrorospathjoindirnameget_dataAttributeErrorr   decodeopennormpath)
identifierpkgnamemodfnr   loaderdata r   k/var/www/html/construction_image-detection-poc/venv/lib/python3.10/site-packages/sympy/utilities/pkgdata.pyget_resource
   s   

r   )r
   r   ior   sympy.utilities.decoratorr   __name__r   r   r   r   r   <module>   s   