summaryrefslogtreecommitdiff
path: root/xhtml2odt/xhtml2odt.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-01-15 15:16:56 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-01-24 21:48:41 +0100
commita687a19ee86386d33f2c2c9dd16ec8340de1d48f (patch)
treeb94ef695a5ebbbcacf7957b707a0f80173d236ab /xhtml2odt/xhtml2odt.py
parent268d7717957fb45041ba0daf5e8bcc029ad43f35 (diff)
downloadIshtar-a687a19ee86386d33f2c2c9dd16ec8340de1d48f.tar.bz2
Ishtar-a687a19ee86386d33f2c2c9dd16ec8340de1d48f.zip
Fix dependencies and path on a clean install
Diffstat (limited to 'xhtml2odt/xhtml2odt.py')
-rwxr-xr-xxhtml2odt/xhtml2odt.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/xhtml2odt/xhtml2odt.py b/xhtml2odt/xhtml2odt.py
index b8ebc38de..aa387d54e 100755
--- a/xhtml2odt/xhtml2odt.py
+++ b/xhtml2odt/xhtml2odt.py
@@ -106,7 +106,11 @@ import mimetypes
from StringIO import StringIO
from optparse import OptionParser
-import tidy
+try:
+ import tidy
+except:
+ from tidylib import tidy_document as tidy
+
from lxml import etree
from PIL import Image