From a6c3fe1763fc9dc17ec800166c72b4caa38d9659 Mon Sep 17 00:00:00 2001 From: Sailesh Mukil Date: Tue, 22 Apr 2025 23:47:06 +0000 Subject: [PATCH] Replace references to 'templates' with 'frontend' - Update the right path in MANIFEST.in --- MANIFEST.in | 4 ++-- spanner_graphs/graph_visualization.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/MANIFEST.in b/MANIFEST.in index b238469..c323054 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ -recursive-include templates * +recursive-include frontend * recursive-include assets * include README.md include sample.ipynb @@ -7,4 +7,4 @@ include spanner_graphs/*.csv include spanner_graphs/*.json include tests/*.json include third_party/index.js -include third_party/LICENSE.js \ No newline at end of file +include third_party/LICENSE.js diff --git a/spanner_graphs/graph_visualization.py b/spanner_graphs/graph_visualization.py index 8a9cd77..e632c2a 100644 --- a/spanner_graphs/graph_visualization.py +++ b/spanner_graphs/graph_visualization.py @@ -48,7 +48,7 @@ def generate_visualization_html(query: str, port: int, params: str): # Get the directory of the current file (magics.py) current_dir = os.path.dirname(os.path.abspath(__file__)) - # Go up directories until we find the 'templates' folder + # Go up directories until we find the 'frontend' folder search_dir = current_dir while 'frontend' not in os.listdir(search_dir): parent = os.path.dirname(search_dir)