
    %e                         d dl Z d dlZd dlZd dlZ ej                    Zedk    Zedk    Zedk    pdev Zd Z	d Z
d ZdS )	    NWindowsDarwinLinuxBSDc                  T    t          j        dt          j        d                   rdS dS )zReturn if streamlit running in pex.

    Pex modifies sys.path so the pex file is the first path and that's
    how we determine we're running in the pex file.
    z.*pex$r   TF)rematchsyspath     2lib/python3.11/site-packages/streamlit/env_util.pyis_pexr      s(     
x	38A;'' t5r   c                      ddl } |                                 d         }|d         }|                    t          j                            dd                    rdS |dv rdS d	S )
z*Return True if running in the Python REPL.r   N   binipythonT)z<stdin>z<string>F)inspectstackendswithosr   join)r   
root_framefilenames      r   is_replr   %   si    NNN$J!}HeY7788 t ***t5r   c                 (    ddl m}  ||           duS )z"Check if executable is in OS path.r   )whichN)shutilr   )namer   s     r   is_executable_in_pathr!   7   s'    5;;d""r   )r   platformr   r
   system_system
IS_WINDOWS	IS_DARWINIS_LINUX_OR_BSDr   r   r!   r   r   r   <module>r(      s    
			  				 




(/

	!
x	g%<5G+;    $# # # # #r   