
    -Ph                         d dl Z e j                            de j                            e j                            d          d                    Ze j                            ed          Zd Zda	d Z
dS )    N
PLOTLY_DIR~z.plotlyz.permission_testc                     	 t           j                            t                    sP	 t          j        t                     n5# t
          $ r( t           j                            t                    s Y nw xY wt          t          d          5 } | 	                    d           d d d            n# 1 swxY w Y   	 t          j
        t                     n# t
          $ r Y nw xY wdS # t
          $ r Y dS w xY w)Nwztesting
TF)ospathexistsr   mkdir	Exceptionisdiropen	TEST_FILEwriteremove)fs    S/var/www/html/test/jupyter/venv/lib/python3.11/site-packages/_plotly_utils/files.py_permissionsr   	   sH   w~~j)) 	$$$$   w}}Z00   )S!! 	!QGGK   	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	! 	!	Ii     	 	 	D	t   uus|   $C% A  C% /A30C% 2A33C% B-!C% -B11C% 4B15C% 9C C% 
C C% C  C% %
C32C3c                  :    t           t                      a t           S )N)_file_permissionsr        r   ensure_writable_plotly_dirr       s      (NNr   )r   environgetr   join
expanduserr   r   r   r   r   r   r   r   <module>r      s    				Z^^"',,rw11#66	BB 
 GLL%788	  (      r   