HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/mercurial/utils/__pycache__/resourceutil.cpython-310.pyc
o

�]Lb��	@sddlmZddlZddlZddlZddlmZdd�Ze�r5eedd�dkr5ej	�
ej�ZeZ
d	d
�Znej	�
ej	�
e�e���Zej	�
e�Z
dd
�ZzddlmZejWneefyod
d�Zdd�Zdd�ZYdSwddlmZdd�Zdd�Zdd�ZdS)�)�absolute_importN�)�pycompatcCs"t�td�pt�td�pt�d�S)z�return True if we are a frozen executable.

    The code supports py2exe (most common, Windows only) and tools/freeze
    (portable, not much used).
    �frozen�	importers�__main__)r�safehasattr�sys�imp�	is_frozen�rr�>/usr/lib/python3/dist-packages/mercurial/utils/resourceutil.py�
mainfrozens

��rr�
macosx_appcCs6|�d�}|ddks
J�tjjtg|dd��R�S)N�.rs	mercurial�)�split�os�path�join�	_rootpath)�package�dirsrrr
�
_package_path+s
rcCstjjtg|�d��R�S)Nr)rrrrr)rrrr
r5s)�	resourcescCstj�t|�|�}t|d�S)N�rb)rrrr�open�r�namerrrr
�
open_resourceEs
rc	Cs@tj�t|�|�}z
tj�t�|��WSttfyYdSw)NF)	rrrr�isfiler�fsdecode�IOError�OSErrorrrrr
�is_resourceIs�r$ccs0�t�t|��}t�|�D]}t�|�Vq
dS�N)rr!rr�listdir�fsencode)rr�prrr
�contentsQs
��r))�encodingcCst�t�|�t�|��Sr%)r�open_binaryr�sysstr�rrrrr
r[��cCst�t�|�t�|��Sr%)rr$rr,r*�strfromlocalr-rrr
r$`r.ccs(�t�t�|��D]}t�|�Vq	dSr%)rr)rr,r*�
strtolocal)r�rrrr
r)es��)�
__future__rr
rr	�rr�getattrr�dirname�
sysexecutable�datapathrrr'�__file__�	importlibrr+�ImportError�AttributeErrorrr$r)r*rrrr
�<module>s2	

�