Docx refactoring

This commit is contained in:
Kiryl
2022-07-27 20:20:52 +03:00
parent 617d4fcaef
commit 290ffa346a
4 changed files with 182 additions and 226 deletions

View File

@@ -66,7 +66,6 @@ class Docx2LibreHTML:
raise error
self.logger_object.log(f"File - {self.file_path}.")
print(f"{self.file_path}")
self.logger_object.log("Beginning of conversion from .docx to .html.")
check_file_exists(
@@ -74,7 +73,7 @@ class Docx2LibreHTML:
folder_path = os.path.dirname(
os.path.dirname(os.path.abspath(__file__)))
out_dir_path = os.path.join(folder_path, f"../html/{self.book_id}")
out_dir_path = os.path.join(folder_path, f"../books/html/{self.book_id}")
pathlib.Path(out_dir_path).mkdir(parents=True, exist_ok=True)
try: