mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 06:33:08 +02:00
Use envvar to enable DOCX Output
This commit is contained in:
parent
e962bd3e24
commit
eed947ae57
1 changed files with 4 additions and 2 deletions
|
|
@ -579,7 +579,10 @@ def set_metadata(self, stream, mi, type):
|
|||
from calibre.ebooks.conversion.plugins.html_output import HTMLOutput
|
||||
from calibre.ebooks.conversion.plugins.htmlz_output import HTMLZOutput
|
||||
from calibre.ebooks.conversion.plugins.snb_output import SNBOutput
|
||||
from calibre.ebooks.conversion.plugins.docx_output import DOCXOutput
|
||||
enable_docx_output = 'CALIBRE_ENABLE_EXPERIMENTAL_DOCX_OUTPUT' in os.environ
|
||||
if enable_docx_output:
|
||||
from calibre.ebooks.conversion.plugins.docx_output import DOCXOutput
|
||||
plugins.append(DOCXOutput)
|
||||
|
||||
plugins += [
|
||||
ComicInput,
|
||||
|
|
@ -623,7 +626,6 @@ def set_metadata(self, stream, mi, type):
|
|||
HTMLOutput,
|
||||
HTMLZOutput,
|
||||
SNBOutput,
|
||||
DOCXOutput,
|
||||
]
|
||||
# }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue