| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/reportlab/lib/__pycache__/ |
Upload File : |
o
`�b�/ � @ sZ d dl Z de _[ dZdZd dlZd dlZd dlZd dlZd dlm Z d dl
Z
d dlmZm
Z
mZmZ dd� Zdadadad d
� Zej�dd�dkrKdnd
fZdd� Zdd� Zd.dd�Zdd� Zd/dd�ZG dd� de �ZG dd� d�ZG dd� de�ZG dd � d e�Z G d!d"� d"e
j!�Z"G d#d$� d$e
j!�Z#G d%d&� d&e
j!�Z$d0d(d)�Z%d*d+� Z&d,d-� Z'dS )1� NTz3.3.0a Provides support for the test suite.
The test suite as a whole, and individual tests, need to share
certain support functions. We have to put these in here so they
can always be imported, and so that individual tests need to import
nothing more than "reportlab.whatever..."
)�ConfigParser)�isCompactDistro�
__rl_loader__�rl_isdir� asUnicodec C sP z!d}t |d�}|�d� |�� tj�|�rt�|� W dS W d S Y dS )Nz00DELETE.ME�wz$test of writability - can be deleted� r )�open�write�close�os�path�isfile�remove)�D�fn�f� r �9/usr/lib/python3/dist-packages/reportlab/lib/testutils.py�
isWritable s
�r c C s� t rt S dd� tjD �}|stj�dd�}|r|g}|r=|d a zt�t � W n Y |D ]
}|tjv r;tj�|� q.n| dksEJ d��tj� tjd �}|sTt�
� }|a tt �s^td �a dd
l
}|jd atj�t�swtj�tj�t��atj� t�}tj�|d�atj�t�s�tj�tj� |�d�atj�t�s�| dkr�tj� tjd �}|s�t�
� }tj�|�and
atr�tj�dtj� t�� t S )z�Is it a writable file system distro being invoked within
test directory? If so, can write test output here. If not,
it had better go in a temp directory. Only do this once per
processc S s"