Browse Source

-

pull/6/head
Mathias Markl 7 years ago
parent
commit
6cea12bbc3
  1. 5
      muk_converter/service/unoconv.py

5
muk_converter/service/unoconv.py

@ -81,9 +81,6 @@ def unoconv_environ():
uno_path = config.get('uno_path', False)
if uno_path:
env['UNO_PATH'] = config['uno_path']
#env['UNO_PATH'] = "C:\\Program Files\\LibreOffice 5\\program"
return env
def convert(input_path, output_path, doctype="document", format="pdf"):
@ -164,4 +161,4 @@ def convert_binary(binary, mimetype=None, filename=None, export="binary", doctyp
else:
return file.read()
finally:
shutil.rmtree(tmp_dir)
shutil.rmtree(tmp_dir)
Loading…
Cancel
Save