+
    'Ýh
  ã                   óÒ   € ^ RI t ^ RIt^ RIt^ RIHt ^ RIHtHt ^ RIt^ RI	H
t
 ^ RIHtHt ^ RIHtHt ^ RIHt ] P&                  ! ]4      tR R	 ltR
RRR/R R lltRR R lltR# )é    N)ÚPath)ÚOptionalÚTuple)Úpaths)ÚEXIT_CODE_OKÚExitCode)ÚhazardÚstars)Ú	pipx_wrapc                ó:   € V ^8„  d   QhR\         \        ,          /# )é   Úreturn)r   r   )Úformats   "Ú;/usr/lib/python3/dist-packages/pipx/commands/ensure_path.pyÚ__annotate__r      s   € ÷ "ñ "¤¬¥ñ "ó    c                 óþ  € Rp \        \        4      P                  4       p\        \        P                  ! 4       4      P                  4       p VP                  V4      pRpV'       dƒ   VR,          R,          \        \        P                  ! 4       4      P                  4       P                  R,          R,          3pV F(  pVP                  4       '       g   K  VP                  p  V # 	  V #   \         d    Rp L›i ; i)zeReturns None if pipx is not installed using `pip --user`
Otherwise returns parent dir of pipx binary
NTFÚbinÚpipxÚScriptszpipx.exe)
r   Ú__file__ÚresolveÚsiteÚgetuserbaseÚrelative_toÚ
ValueErrorÚgetusersitepackagesÚparentÚexists)Úpipx_bin_pathÚscript_pathÚuserbase_pathÚ_Úpip_user_installedÚ
test_pathsÚ	test_paths          r   Úget_pipx_user_bin_pathr'      sã   € ð €Mä”x“.×(Ñ(Ó*€KÜœ×)Ò)Ó+Ó,×4Ñ4Ó6€Mð"Ø×#Ñ# MÓ2ˆð "Ðßà˜EÕ! FÕ*Ü”×)Ò)Ó+Ó,×4Ñ4Ó6×=Ñ=À	ÕIÈJÕVð
ˆ
ó $ˆIØ×Ñ×!Ô!Ø )× 0Ñ 0�ØàÐñ $ð
 Ðøô ô #Ø"Òð#ús   ÁC, Ã,C<Ã;C<ÚprependFÚ
all_shellsc                óv   € V ^8„  d   QhR\         R\        R\        R\        R\        \        \        3,          /# )r   ÚlocationÚforcer(   r)   r   )r   Úboolr   )r   s   "r   r   r   6   s=   € ÷ .,ñ .,œ$ð .,¬$ð .,¼ð .,ÔSWð .,ÔdiÔjnÔptÐjtÕduñ .,r   c               ód  € \        V 4      pRp\        P                  ! V4      p\        P                  ! V4      pV'       g   V'       g    V'       g˜   V'       d   \        P                  ! VRVR7      pM\        P
                  ! VRVR7      pV'       g"   \        \        \         RV R2RR7      4       M\        \        RV R2RR7      4       \        P                  ! V4      pWV3# V'       g&   V'       d   \        \        R	V R
2RR7      4       WV3# \        \        V R2RR7      4       WV3# )z§Ensure location is in user's PATH or add it to PATH.
If prepend is True, location will be prepended to PATH, else appended.
Returns True if location was added to PATH
Fr   )r)   z  ze is not added to the PATH environment variable successfully. You may need to add it to PATH manually.)Úsubsequent_indentzSuccess! Added z" to the PATH environment variable.ú
                a   has been added to PATH, but you need to
                open a new terminal or re-login for this PATH change to take
                effect. Alternatively, you can source your shell's config file
                with e.g. 'source ~/.bashrc'.
                z is already in PATH.z    )	ÚstrÚuserpathÚneed_shell_restartÚin_current_pathr(   ÚappendÚprintr   r	   )r+   r,   r(   r)   Úlocation_strÚ
path_addedr3   r4   s   &$$$    r   Úensure_pathr9   6   s/  € ô
 �x“=€LØ€JÜ!×4Ò4°\ÓBÐÜ×.Ò.¨|Ó<€Oç—_×-?ßÜ!×)Ò)¨,¸È:ÔV‰Jä!Ÿš¨°vÈ*ÔUˆJßÜÜÜ�h˜b  ð /?ð @à&-ôõô ÜØ% l ^Ð3UÐVØ&-ôôô &×8Ò8¸ÓFÐð  Ð+Ð+÷ ×!3ÜÜðØ�ð ðð #*ôô
	
ð Ð+Ð+ô 	Œi˜<˜.Ð(<Ð=ÐQXÔYÔZàÐ+Ð+r   c                óH   € V ^8„  d   QhR\         R\         R\         R\        /# )r   r,   r(   r)   r   )r-   r   )r   s   "r   r   r   g   s)   € ÷ :ñ :œTð :¬Dð :Ädð :ÔW_ñ :r   c           	     ód  € \         P                  P                  0p\        4       pVe   VP	                  V4       RpRpV'       d   RMRpV F"  p\        W�WR7      w  ršWY,          pWj,          pK$  	  \        4        V'       d   \        \        R4      R,           4       MVV'       gO   \        P                  P                  4        \        P                  \        R\         RV R	24      R,           4       V'       d   \        \        R
4      R,           4       \        R\         24       \        # )zReturns pipx exit code.Fzprepended tozappended to)r(   r,   r)   z†
                Consider adding shell completions for pipx. Run 'pipx
                completions' for instructions.
                Ú
r0   z(  All pipx binary directories have been z PATH. If you
                are sure you want to proceed, try again with the '--force'
                flag.
                zì
                You will need to open a new terminal or re-login for the PATH
                changes to take effect. Alternatively, you can source your shell's
                config file with e.g. 'source ~/.bashrc'.
                zOtherwise pipx is ready to go! )r   ÚctxÚbin_dirr'   Úaddr9   r6   r   ÚsysÚstdoutÚflushÚloggerÚwarningr	   r
   r   )r,   r(   r)   Ú	bin_pathsÚpipx_user_bin_pathr8   r3   Úpath_action_strÚbin_pathÚpath_added_currentÚneed_shell_restart_currents   &&&        r   Úensure_pipx_pathsrK   g   s)  € ä—‘×"Ñ"Ð#€Iä/Ó1ÐØÒ%Ø�‰Ð(Ô)à€JØÐß(/‘n°]€OãˆÜ;FØ¨Uô<
Ñ8Ð	ð 	Õ(ˆ
ØÕ8Òñ ô 
„GçÜÜðóð õõ	
÷  Ü�
‰
×ÑÔÜ�‰ÜðÜ�Ð@ÀÐ@Qð Rðóð õô		
÷ ÜÜðóð õô		
ô 
Ð+¬E¨7Ð
3Ô4äÐr   )FF)Úloggingr   r@   Úpathlibr   Útypingr   r   r2   r   r   Úpipx.constantsr   r   Úpipx.emojisr	   r
   Ú	pipx.utilr   Ú	getLoggerÚ__name__rC   r'   r9   rK   © r   r   Ú<module>rU      sX   ðÛ Û Û 
Ý ß "ã å ß 1ß %Ý à	×	Ò	˜8Ó	$€õ"ðJ.,Àð .,ÐZ_÷ .,÷b:ñ :r   