uniconv-ext.py revision 9886c9f91112fca077082dba96c7244aa32ae5cb
"""
Python script for running UniConvertor in Inkscape extensions
Copyright (C) 2008 Stephen Silver
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
"""
import os
import random
import subprocess
import sys
import tempfile
# We need a filename ending in ".svg" for UniConvertor.
# This is a hack.
while True:
break
# Run UniConvertor, and determine our return code.
try:
if rc:
rc = 1
rc = 1
# If successful, copy the SVG file to stdout.
if rc == 0:
try:
for line in f:
f.close()
rc = 1
# Clean up and return.
try:
except Exception:
pass