
    yIf                    ,    d dl mZ d dlmZ d
dZdgZd	S )    )annotations)Pathexestrreturnlist[str] | Nonec                   	 t          |                               d          5 }|                    d          }|dk    r	 ddd           dS |                                }ddd           n# 1 swxY w Y   n# t          $ r Y dS w xY w	 |                    d          }n# t          $ r Y dS w xY wd |                                                                D             S )zS
    :param exe: the executable
    :return: the shebang interpreter arguments
    rb   s   #!NzUTF-8c                ^    g | ]*}|                                 |                                 +S  )strip).0is     D/var/www/piapp/venv/lib/python3.11/site-packages/tox/execute/util.py
<listcomp>zshebang.<locals>.<listcomp>   s-    DDD!!''))DAGGIIDDD    )	r   openreadreadlineOSErrordecodeUnicodeDecodeErrorr   split)r   file_handlermarkershebang_linedecodeds        r   shebangr      sT   #YY^^D!! 	3\!&&q))F	3 	3 	3 	3 	3 	3 	3 	3 (0022L		3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3 	3
    tt%%g..   ttDDw}}4466DDDDsR   "A: A.A: A."A: .A22A: 5A26A: :
BBB" "
B0/B0r   N)r   r   r   r   )
__future__r   pathlibr   r   __all__r   r   r   <module>r#      sQ    " " " " " "      E E E E2 r   