Commit 9ddae0a8 authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Fix

parent 78a6ad47
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ import zipfile
from lxml import etree
import tempfile
import shutil
from typing import Union

#import win32com.client #pip install pywin32

@@ -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: