o
    &zha  ã                   @   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   úS/var/www/html/kangema/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   	