From 04b95ec3b366bc4323ad5be54a66974b0a96877e Mon Sep 17 00:00:00 2001 From: su_v Date: Thu, 17 Jan 2013 00:09:13 +0100 Subject: Fix support for UniConvertor 1.1.4 (see bug #425202) (bzr r12032) --- share/extensions/uniconv-ext.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/share/extensions/uniconv-ext.py b/share/extensions/uniconv-ext.py index 5608000c4..f4c80b5d6 100755 --- a/share/extensions/uniconv-ext.py +++ b/share/extensions/uniconv-ext.py @@ -22,6 +22,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA """ # standard library import sys +# local library +from run_command import run +import inkex + +inkex.localize() + +cmd = None + try: from subprocess import Popen, PIPE p = Popen('uniconvertor', shell=True, stdout=PIPE, stderr=PIPE).wait() @@ -37,13 +45,6 @@ except ImportError: if p!=32512 : cmd = 'uniconv' p = Popen3('uniconvertor', True).wait() if p!=32512 : cmd = 'uniconvertor' -# local library -from run_command import run -import inkex - -cmd = None - -inkex.localize() if cmd == None: # there's no succeffully-returning uniconv command; try to get the module directly (on Windows) -- cgit v1.2.3