From 4e569d3603a485768beda534a4ab11e0efef93bb Mon Sep 17 00:00:00 2001 From: RepoDynamicsBot <80158628+AAriam@users.noreply.github.com> Date: Tue, 27 Aug 2024 16:29:46 +0200 Subject: [PATCH] update --- pyproject.toml | 2 +- src/loggerman/logger.py | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 6721088..1c1fb25 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,7 +17,7 @@ namespaces = true # ----------------------------------------- Project Metadata ------------------------------------- # [project] -version = "0.0.0.dev10" +version = "0.0.0.dev11" name = "LoggerMan" dependencies = [ "markitup", diff --git a/src/loggerman/logger.py b/src/loggerman/logger.py index 6fdd3d5..6c4d199 100644 --- a/src/loggerman/logger.py +++ b/src/loggerman/logger.py @@ -148,10 +148,6 @@ def initialize( } self._symbol_caller = caller_symbol - if self._output_html_filepath: - self._output_html_filepath.parent.mkdir(parents=True, exist_ok=True) - self._output_html_filepath.touch(exist_ok=True) - self._curr_section = "" self._open_grouped_sections = 0 @@ -174,6 +170,7 @@ def initialize( self._html_file_end = "\n\n" self._html_num_chars_at_end = -len(self._html_file_end) if self._realtime and self._output_html_filepath: + self._output_html_filepath.parent.mkdir(parents=True, exist_ok=True) with open(self._output_html_filepath, 'w') as f: f.write(f"{self._log_html}{self._html_file_end}") self._initialized = True