
    vKg"                     ^    S SK r S SKrS SKr " S S5      r\" \5      R                  S5      rg)    Nc                   &    \ rS rSrS rS rS rSrg)Data   c                     Xl         [        R                  " U5      n[        R                  R                  [        R                  " U5      5      n[        R                  R                  U5      U l        g )N)	name	importlibimport_moduleospathdirnameinspectgetsourcefileabspath)selfr   mr   s       l/var/www/highfloat_scraper/venv/lib/python3.13/site-packages/seleniumwire/thirdparty/mitmproxy/utils/data.py__init__Data.__init__   sH    	##D)''//'"7"7":;www/    c                     [         R                  R                  [         R                  R                  U R                  U5      5      n[        U R                  5      nX#l        U$ )z:
Change the data object to a path relative to the module.
)r
   r   normpathjoinr   r   r   )r   subpathr   rets       r   push	Data.push   sB     ''""277<<g#FG499o
r   c                     [         R                  R                  [         R                  R                  U R                  U5      5      n[         R                  R                  U5      (       d  [        SU-  5      eU$ )z
Returns a path to the package data housed at 'path' under this
module.Path can be a path to a file, or to a directory.

This function will raise ValueError if the path does not exist.
zdataPath: %s does not exist.)r
   r   r   r   r   exists
ValueError)r   r   fullpaths      r   r   	Data.path   sT     77##BGGLLt$DEww~~h'';hFGGr   )r   r   N)__name__
__module____qualname____firstlineno__r   r   r   __static_attributes__ r   r   r   r      s    0
r   r   z..)r   r   os.pathr
   r   r"   r   pkg_datar'   r   r   <module>r*      s.       < >t$r   