Code

Fix uniconvertor extensions to work with UC version 1.1.5
authorKrzysztof Kosiński <tweenk.pl@gmail.com>
Fri, 13 Aug 2010 02:24:55 +0000 (04:24 +0200)
committerKrzysztof Kosiński <tweenk.pl@gmail.com>
Fri, 13 Aug 2010 02:24:55 +0000 (04:24 +0200)
share/extensions/uniconv-ext.py
share/extensions/uniconv_output.py

index d3d69546c2e1ebfc0507dc4c357d4b87e7d93ea3..a7608bc568be8d86b18b7d49dbb5283b725909c1 100644 (file)
@@ -57,7 +57,7 @@ if cmd == None:
                      'http://sk1project.org/modules.php?name=Products&product=uniconvertor\n'+\
                      'and install into your Inkscape\'s Python location\n'))
         sys.exit(1)
-    cmd = 'python -c "import uniconvertor"'
+    cmd = 'python -c "import uniconvertor; uniconvertor.uniconv_run()"'
 
 run((cmd+' "%s" "%%s"') % sys.argv[1].replace("%","%%"), "UniConvertor")
 
index f7746c2f45ff2a1a5123871357aa4121a327545f..720666103c29b3398d6489487674c6d311f1384d 100644 (file)
@@ -123,7 +123,7 @@ def get_command():
                          'http://sk1project.org/modules.php?name=Products&product=uniconvertor\n'+\
                          'and install into your Inkscape\'s Python location\n'))
             sys.exit(1)
-        cmd = 'python -c "from uniconvertor import uniconv; uniconv();"'
+        cmd = 'python -c "import uniconvertor; uniconvertor.uniconv_run();"'
 
     return cmd