a
    0h`                     @   sB   d dl Z d dlZd dlZd dlZdd Zejdk r6endd ZdS )    Nc                    s   dd fdd
}t j|dS )a  
    Workaround for https://github.com/python/cpython/issues/84538
    to add backward compatibility for walk_up=True.
    An example affected package is dask-labextension, which uses
    jupyter-packaging to install JupyterLab javascript files outside
    of site-packages.
    F)walk_upc                   s   t tj | S N)pathlibPathospathrelpath)rootr   r    M/var/www/auris/lib/python3.9/site-packages/importlib_metadata/compat/py311.pyrelative_to   s    zwrap.<locals>.relative_to)r   )typesSimpleNamespace)r   r   r   r
   r   wrap   s    	r   )      c                 C   s   | S r   r   )xr   r   r   <lambda>       r   )r   r   sysr   r   version_infoZrelative_fixr   r   r   r   <module>   s
   