o
    ha                     @   s>   d Z dZdadZddlZddlZdd Zdd Zdd	d
ZdS )z3.3.0as  Helper for the test suite - determines where to write output.

When our test suite runs as source, a script "test_foo.py" will typically
create "test_foo.pdf" alongside it.  But if you are testing a package of
compiled code inside a zip archive, this won't work.  This determines
where to write test suite output, creating a subdirectory of /tmp/ or
whatever if needed.

N)get_rl_tempdirr       c                   C   s   t tdr	t S dS )Ngetuid )hasattrosr    r   r   Z/var/www/html/optinet_system/venv/lib/python3.10/site-packages/reportlab/lib/rltempfile.py
_rl_getuid   s   
r	   c                  G   s\   t d u rtjt dtt  a t }| rtjj|f|   }zt| W |S    Y |S )NzReportLab_tmp%s)	_rl_tempdirr   pathjointempfile
gettempdirstrr	   makedirs)subdirsdr   r   r   r      s   r   c                 C   s   | st  } tjt | S N)r   mktempr   r   r   r   )fnr   r   r   get_rl_tempfile#   s   r   r   )	__version____doc__r
   __all__r   r   r	   r   r   r   r   r   r   <module>   s   	