final stage update bugs

This commit is contained in:
2024-11-08 14:33:46 +09:00
parent 9eb45d7e97
commit d22e8b5a23
7 changed files with 108 additions and 84 deletions

View File

@ -113,6 +113,10 @@ class SumasenExcel:
self.basic = basic
self.output_path = basic.get("output_path")
if not os.path.exists(self.output_path):
os.makedirs(self.output_path, exist_ok=True)
logging.info("step-2")
# basicセクションから必要なパラメータを取得
@ -143,7 +147,7 @@ class SumasenExcel:
logging.error("sections not found in basic section")
# 出力ファイルパスを設定
self.output_filepath = f"{self.docpath}/{doc_file}"
self.output_filepath = f"{self.output_path}/{doc_file}"
# 新規のExcelワークブックを作成
self.workbook = openpyxl.Workbook()
# デフォルトで作成されるシートを削除