Loading generateBaseline/postprocessing.py +2 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ import zipfile from lxml import etree import tempfile import shutil from typing import Union #import win32com.client #pip install pywin32 Loading Loading @@ -80,7 +81,7 @@ def postprocess_table_content(config): doc.save(output_path) def update_word_fields(config_path: dict|str): def update_word_fields(config_path: Union[dict, str]): if os.path.isfile(config_path): docx_path = config_path else: Loading Loading
generateBaseline/postprocessing.py +2 −1 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ import zipfile from lxml import etree import tempfile import shutil from typing import Union #import win32com.client #pip install pywin32 Loading Loading @@ -80,7 +81,7 @@ def postprocess_table_content(config): doc.save(output_path) def update_word_fields(config_path: dict|str): def update_word_fields(config_path: Union[dict, str]): if os.path.isfile(config_path): docx_path = config_path else: Loading