+
    {h  c                   s    R t ^ RIt^ RIt^ RIt^ RIHt  ! R R]4      tRR ltR t	]
R8X  d    ]	! 4        R# R#   ] d$   t]P                  ! ]! ]4      4        RtAR# RtAii ; i)	a  
Utility for locating a module (or package's __main__.py) with a given name
and verifying it contains the PYTHON_ARGCOMPLETE_OK marker.

The module name should be specified in a form usable with `python -m`.

Intended to be invoked by argcomplete's global completion function.
N)	find_specc                   s    ] tR t^tRtR# )ArgcompleteMarkerNotFound N)__name__Z
__module__Z__qualname__Z__firstlineno__Z__static_attributes__r       >/usr/lib/python3.14/site-packages/argcomplete/_check_module.pyr   r      s    r   r   c           	      s^   V P                  R 4      p\        \        V4      4       F=  p\        R P	                  VRV^,            4      4      pVf   K-  VP
                  f   K=   M	  Xf"   \        RP                  V^ ,          4      4      hVP                  '       g   \        R4      hVP                  f>   \        V4      ^8w  d"   \        RP                  V^ ,          4      4      hVP
                  # \        VP                  4      ^8w  d   \        R4      h\        P                  P                  ! VP                  ^ ,          .VX^,           R O5!  p\        P                  P                  V4      '       d,   RpV'       d   Rp\        P                  P	                  WV4      # VR,           # )	Z.Nzno module named "{}"zcannot locate filez{} is not a packagezexpecting one search locationz__main__.pyz__init__.pyz.py)ZsplitZrangeZlenr    ZjoinZoriginr   ZformatZhas_locationZsubmodule_search_locationsospathZisdir)nameZreturn_packageZnamesZpackage_name_boundaryZspecr   filenames   &&     r   findr
      sY   JJsOE!&s5z!2%(C*?!*C"DEF 7 "3
 |'(>(E(EeAh(OPP'(<==&&.u:?+,A,H,Hq,RSS{{
4**+q0'(GHH77<<77:`UCX[\C\C^=_`D	ww}}T $Hww||D++e|r   c                  st    \         P                  ^,          p \	        T 4      p \
        P                  ! T4      pT;_uu_ 4        TP                  R4      pRRR4       RX9  d   \        R4      hR#   \         d    \        R4      hi ; i  \         d    \        R4      hi ; i  + '       g   i     LX; i)i   z$missing argument on the command linezcannot open filei   NZPYTHON_ARGCOMPLETE_OKzmarker not found)	sysZargvZ
IndexErrorr   r
   tokenizeZopenZOSErrorZread)r   r	   ZfpZheads       r   mainr   0   s    Pxx{ DzH<]]8$ 
wwt} 
 d*'(:;; +  P'(NOOP  <'(:;;< 
s"   A3 B B'3B
B$'B7	Z__main__)F)Z__doc__r   r   r   Zimportlib.utilr    ZRuntimeErrorr   r
   r   r   ZeZexitZstrr   r   r   <module>r      sl    
 
  $	 	8<( z  % Qs   ; A%A  A%