Commit 6b5045e7 authored by Ondřej Borýsek's avatar Ondřej Borýsek
Browse files

Allow disabling docx support using ENV

parent 0d9c6124
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -27,7 +27,7 @@ from tqdm import tqdm
import cloudscraper
import cloudscraper
from urlextract import URLExtract
from urlextract import URLExtract


DOCX_SUPPORT = True  # Disable this if you don't need docx output and want to have easier setup.
DOCX_SUPPORT = os.getenv("DISABLE_DOCX_SUPPORT", "yes").lower() in ['yes', 'y', 'true']  # Disable this if you don't need docx output and want to have easier setup.


if DOCX_SUPPORT:
if DOCX_SUPPORT:
    import docx
    import docx