
    6Dh                         S SK r \ R                  R                  S\ R                  R	                  \ R                  R                  S5      S5      5      r\ R                  R	                  \S5      rS rSq	S r
g)    N
PLOTLY_DIR~z.plotlyz.permission_testc                      [         R                  R                  [        5      (       d   [         R                  " [        5        [        [        S5       n U R                  S5        S S S 5         [         R                  " [        5        g! [
         a,    [         R                  R                  [        5      (       d  e  N{f = f! , (       d  f       Nc= f! [
         a     gf = f! [
         a     gf = f)Nwztesting
TF)ospathexistsr   mkdir	Exceptionisdiropen	TEST_FILEwriteremove)fs    E/var/www/html/env/lib/python3.13/site-packages/_plotly_utils/files.py_permissionsr   	   s    ww~~j))$
 )S!QGGK  "	IIi    ww}}Z00 1 "!  		  sj   (C% B C% C'C% 0C 3C>C%  CC% 
CC% 
C"C% !C""C% %
C21C2c                  0    [         c
  [        5       q [         $ )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   