From dd04b32c5ea1846ca31c3a1a7e167849f37d8415 Mon Sep 17 00:00:00 2001 From: Christian Dalager Date: Thu, 10 Oct 2024 11:33:29 +0200 Subject: [PATCH] fix broken import when packaged --- docs/Packaging_notes.md | 2 +- src/graphedexcel/__main__.py | 2 +- src/graphedexcel/graph_visualizer.py | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/Packaging_notes.md b/docs/Packaging_notes.md index d8f8fb6..dc9a320 100644 --- a/docs/Packaging_notes.md +++ b/docs/Packaging_notes.md @@ -22,7 +22,7 @@ pip install -i https://test.pypi.org/simple/ graphedexcel ## installation from local dist ```bash -pip install 'C:\projects\dalager\1 Projects\graphedexcel\dist\graphedexcel-0.0.7-py3-none-any.whl' --force-reinstall +pip install 'C:\projects\dalager\1 Projects\graphedexcel\dist\graphedexcel-0.0.0-py3-none-any.whl' --force-reinstall ``` diff --git a/src/graphedexcel/__main__.py b/src/graphedexcel/__main__.py index 574ef79..de88bc9 100644 --- a/src/graphedexcel/__main__.py +++ b/src/graphedexcel/__main__.py @@ -5,7 +5,7 @@ from .graphbuilder import build_graph_and_stats from .graph_summarizer import print_summary from .graph_visualizer import visualize_dependency_graph -import src.graphedexcel.logger_config # noqa +from graphedexcel import logger_config # noqa: F401 logger = logging.getLogger("graphedexcel.main") diff --git a/src/graphedexcel/graph_visualizer.py b/src/graphedexcel/graph_visualizer.py index f3326e7..0da52a2 100644 --- a/src/graphedexcel/graph_visualizer.py +++ b/src/graphedexcel/graph_visualizer.py @@ -197,7 +197,5 @@ def visualize_dependency_graph( plt.legend(handles=legend_patches, title="Sheets", loc="upper left") - plt.savefig(output_path, bbox_inches="tight") # Ensure layout fits + plt.savefig(output_path, bbox_inches="tight") plt.close() # Close the figure to free memory - - logger.info(f"Graph visualization saved to {output_path}")