o
    Ñ­j{  ã                   @   s.   d dl Z d dlZddlmZ dZddd„ZdS )	é    Né   )ÚShellDetectionFailurez1.5.4é
   c                 C   s€   t j}zt d |¡t¡}W n ty   d |¡}t|ƒ‚w z|j}W n t	y2   td |¡ƒ‚w || |d�}|r=|S t
ƒ ‚)Nz.{}z)Shell detection not implemented for {0!r}z#get_shell not implemented for {0!r})Ú	max_depth)ÚosÚnameÚ	importlibÚimport_moduleÚformatÚ__name__ÚImportErrorÚRuntimeErrorÚ	get_shellÚAttributeErrorr   )Úpidr   r   ÚimplÚmessager   Úshell© r   úQ/var/www/html/CropPilot/venv/lib/python3.10/site-packages/shellingham/__init__.pyÚdetect_shell	   s    
þ
ÿr   )Nr   )r   r   Ú_corer   Ú__version__r   r   r   r   r   Ú<module>   s
    