
    -Phz                    *   d Z ddlmZ ddlZddlZddlZg dZej        Zej        Zej	        Z	 ej
                                                    dv r& G d d e ej                                        ZdS ej        Zej        Zej        Zedd	gz  ZdS )
a  
    This module soly exists to work around a pathlib.resolve bug on
    certain Windows systems:

    https://github.com/mesonbuild/meson/issues/7295
    https://bugs.python.org/issue31842

    It should **never** be used directly. Instead, it is automatically
    used when `import pathlib` is used. This is achieved by messing with
    `sys.modules['pathlib']` in mesonmain.

    Additionally, the sole purpose of this module is to work around a
    python bug. This only bugfixes to pathlib functions and classes are
    allowed here. Finally, this file should be removed once all upstream
    python bugs are fixed and it is OK to tell our users to "just upgrade
    python".
    )annotationsN)PurePathPurePosixPathPureWindowsPathPath>   windowsc                  "     e Zd Zdd fdZ xZS )	r   Fstrictboolreturn'Path'c                    	 t                                          |          S # t          $ r/ t          t          j                            |                     cY S w xY w)z
                Work around a resolve bug on certain Windows systems:

                https://github.com/mesonbuild/meson/issues/7295
                https://bugs.python.org/issue31842
            )r
   )superresolveOSErrorr   ospathnormpath)selfr
   	__class__s     S/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/mesonbuild/_pathlib.pyr   zPath.resolve+   s_    4wwf555 4 4 4BG,,T22333334s   !% 6AA)F)r
   r   r   r   )__name__
__module____qualname__r   __classcell__)r   s   @r   r   r   *   sB        	4 	4 	4 	4 	4 	4 	4 	4 	4 	4 	4    r   	PosixPathWindowsPath)__doc__
__future__r   pathlibr   platform__all__r   r   r   systemlowertyper   r   r    r   r   <module>r(      s   " # " " " " "  				    %) 8?++4 4 4 4 4ttLGLNN## 4 4 4 4 4 <D!I%K GGGr   