403Webshell
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/share/inkscape/extensions/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/inkscape/extensions/__pycache__/jessyink_export.cpython-310.pyc
o

0�a�	�@shdZddlZddlZddlmZddlmZddlmZGdd�deeej	�Z
edkr2e
���dSdS)	z-
JessyInk Export to zipfile multiple layers.
�N)�TempDirMixin)�
take_snapshot)�
JessyInkMixinc@s$eZdZdZdZdd�Zdd�ZdS)�ExportzP
    JessyInkExport Output Extension saves to a zipfile each of the layers.
    z	jessyInk-cCs6|jdtdd�|jdtddd�|jdtd	d
�dS)Nz--tab�what)�type�destz--typer�png)rr�defaultz--resolution�`)rr
)�add_argument�str�int)�self�pars�r�1/usr/share/inkscape/extensions/jessyink_export.py�
add_arguments%szExport.add_argumentsc	Cs�|��tj|dtjd��_}|j�d�}t|�dkr(t�d�	Wd�dS|D]}d|j	d<q*|D]/}|j	�
d�|�d	�}d
�||j
j�}t|j|j||j
j|j
jd�}|�||�d|j	d<q4Wd�dS1sowYdS)N�w)�compressionz$//svg:g[@inkscape:groupmode='layer']�zNo layers found.�none�displayzdisplay:inherit;opacity:1zinkscape:labelz{}.{})�dirname�name�ext�dpi)�is_installed�zipfile�ZipFile�
ZIP_STORED�svg�xpath�len�inkex�errormsg�style�update�get�format�optionsrr�document�tempdir�
resolution�write)r�stream�output�layers�noder�newname�filenamerrr�save*s*
�	

��"�zExport.saveN)�__name__�
__module__�__qualname__�__doc__�
dir_prefixrr5rrrrrs
r�__main__)
r9rr$�
inkex.baser�
inkex.commandr�jessyink_installr�OutputExtensionrr6�runrrrr�<module>s)�

Youez - 2016 - github.com/yon3zu
LinuXploit