ad3c2f2
uniconvertor and uniconv are looked in in reversed order
ad3c2f2
(therefore we can call uniconv that's different from the uniconvertor one)
ad3c2f2
https://bugs.launchpad.net/inkscape/+bug/226383
ad3c2f2
ad3c2f2
Lubomir Rintel <lkundrak@v3.sk>
ad3c2f2
ad3c2f2
diff -up inkscape/share/extensions/uniconv-ext.py.uniconv inkscape/share/extensions/uniconv-ext.py
ad3c2f2
--- inkscape/share/extensions/uniconv-ext.py.uniconv	2009-03-01 18:06:19.000000000 +0100
ad3c2f2
+++ inkscape/share/extensions/uniconv-ext.py	2009-04-10 15:22:21.916579400 +0200
ad3c2f2
@@ -28,19 +28,21 @@ cmd = None
ad3c2f2
 
ad3c2f2
 try:
ad3c2f2
     from subprocess import Popen, PIPE
ad3c2f2
-    p = Popen('uniconv', shell=True, stdout=PIPE, stderr=PIPE).wait()
ad3c2f2
+    p = Popen('uniconvertor', shell=True, stdout=PIPE, stderr=PIPE).wait()
ad3c2f2
     if p==0 :
ad3c2f2
-        cmd = 'uniconv'
ad3c2f2
+        cmd = 'uniconvertor'
ad3c2f2
     else:
ad3c2f2
-        p = Popen('uniconvertor', shell=True, stdout=PIPE, stderr=PIPE).wait()
ad3c2f2
+        p = Popen('uniconv', shell=True, stdout=PIPE, stderr=PIPE).wait()
ad3c2f2
         if p==0 :
ad3c2f2
-            cmd = 'uniconvertor'
ad3c2f2
+            cmd = 'uniconv'
ad3c2f2
 except ImportError:
ad3c2f2
     from popen2 import Popen3
ad3c2f2
-    p = Popen3('uniconv', True).wait()
ad3c2f2
-    if p!=32512 : cmd = 'uniconv'
ad3c2f2
     p = Popen3('uniconvertor', True).wait()
ad3c2f2
-    if p!=32512 : cmd = 'uniconvertor'
ad3c2f2
+    if p!=32512 :
ad3c2f2
+        cmd = 'uniconvertor'
ad3c2f2
+    else:
ad3c2f2
+        p = Popen3('uniconv', True).wait()
ad3c2f2
+        if p!=32512 : cmd = 'uniconv'
ad3c2f2
 
ad3c2f2
 if cmd == None:
ad3c2f2
     # there's no succeffully-returning uniconv command; try to get the module directly (on Windows)