HEX
Server: Apache
System: Linux opal14.opalstack.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User: curbgloabal_opal (1234)
PHP: 8.1.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/share/inkscape/extensions/uniconv_output.pyo
�
��Yc@sLdZddlZddlZddlZddlZd�Zd�ZdS(sr
uniconv_output.py
Module for running UniConverter exporting commands in Inkscape extensions

Copyright (C) 2009 Nicolas Dufour (jazzynico)
Based on unicon-ext.py and run_command.py by Stephen Silver

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
i����NcCsltj|�}||}d}yybddlm}m}||dtd|d|�}|j�}	|jj	�}
|j
j	�}Wn�tk
ryWddlm
}||t�}|j�|j�}	|jj	�}
|jj	�}Wq	tk
rd}q	XnX|	r1|dkr1d||
|f}nWn)tk
r]}
d	|t|
�f}nX|dkrtjd
kr�ddl}|jtjj�tj�ny9t|d�}|j	�}tjj|�|j�Wqtk
r}
dt|
�}qXnytj|�Wntk
r*nX|dk	r[tj
j|d
�tjd�n
tjd�dS(Ni����(tPopentPIPEtshelltstdouttstderr(tPopen3s7Neither subprocess.Popen nor popen2.Popen3 is availables%s failed:
%s
%s
sError attempting to run %s: %stnttrbs Error reading temporary file: %ss
ii( ttempfiletmktemptNonet
subprocessRRtTruetwaitRtreadRtImportErrortpopen2Rtpollt	fromchildtchilderrt	ExceptiontstrtostnametmsvcrttsetmodetsystfilenotO_BINARYtopentwritetclosetIOErrortremovetexit(tcommand_formatt	prog_nametuniconv_formattoutfiletcommandtmsgRRtptrctoutterrRtinstRtftdata((s0/usr/share/inkscape/extensions/uniconv_output.pytrun&sV




cCs�d}y�ddlm}m}|ddtd|d|�j�}|dkrXd}n9|ddtd|d|�j�}|dkr�d}nWnutk
r	dd	lm}|dt�j�}|d
kr�d}n|dt�j�}|d
kr
d}q
nX|dkr�yddl	}|j
d�WnKtk
r�tj�tj
tddd
dd��tjd�nXd}n|S(Ni����(RRtuniconvertorRRRituniconv(Ris/You need to install the UniConvertor software.
s8For GNU/Linux: install the package python-uniconvertor.
sFor Windows: download it from
sRhttps://sk1project.net/modules.php?name=Products&product=uniconvertor&op=download
s1and install into your Inkscape's Python location
is<python -c "import uniconvertor; uniconvertor.uniconv_run();"(R
RRRRR
RRRtimptfind_moduletinkextlocalizeterrormsgt_RR"(tcmdRRR)RR3((s0/usr/share/inkscape/extensions/uniconv_output.pytget_command_s:$	$

	


		(t__doc__RRRR5R0R:(((s0/usr/share/inkscape/extensions/uniconv_output.pyt<module>s		9