
    g                         d dl Z e j                  j                  de j                  j	                  e j                  j                  d      d            Ze j                  j	                  ed      Zd Zda	d Z
y)    N
PLOTLY_DIR~z.plotlyz.permission_testc                     	 t         j                  j                  t              s	 t        j                  t               t        t        d      5 } | j                  d       d d d        	 t        j                  t               y# t
        $ r' t         j                  j                  t              s Y tw xY w# 1 sw Y   WxY w# t
        $ r Y yw xY w# t
        $ r Y yw xY w)Nwztesting
TF)ospathexistsr   mkdir	Exceptionisdiropen	TEST_FILEwriteremove)fs    P/var/www/dash_apps/app1/venv/lib/python3.12/site-packages/_plotly_utils/files.py_permissionsr   	   s    ww~~j)$
 )S! 	!QGGK 	!	IIi    ww}}Z0 1	! 	!  		  si   #C B C B7!C *C -B41C 3B44C 7C <C 	CC CC 	CCc                  .    t         
t               a t         S )N)_file_permissionsr        r   ensure_writable_plotly_dirr       s      (Nr   )r   environgetr   join
expanduserr   r   r   r   r   r   r   r   <module>r      sf    	ZZ^^"'',,rww11#6	B
 GGLL%78	(  r   