diff --git a/src/embeddingbuddy/ui/callbacks/data_processing.py b/src/embeddingbuddy/ui/callbacks/data_processing.py index 09a2fb7..d50b702 100644 --- a/src/embeddingbuddy/ui/callbacks/data_processing.py +++ b/src/embeddingbuddy/ui/callbacks/data_processing.py @@ -660,14 +660,12 @@ class DataProcessingCallbacks: import os try: - # Get the project root directory (four levels up from this file) + # Get the embeddingbuddy package directory (three levels up from this file) current_file = os.path.abspath(__file__) - project_root = os.path.dirname( - os.path.dirname( - os.path.dirname(os.path.dirname(os.path.dirname(current_file))) - ) + package_dir = os.path.dirname( + os.path.dirname(os.path.dirname(current_file)) ) - sample_file_path = os.path.join(project_root, "assets", "sample-txt.md") + sample_file_path = os.path.join(package_dir, "assets", "sample-txt.md") if os.path.exists(sample_file_path): with open(sample_file_path, "r", encoding="utf-8") as file: diff --git a/uv.lock b/uv.lock index 8d8d92e..6a35b43 100644 --- a/uv.lock +++ b/uv.lock @@ -412,7 +412,7 @@ wheels = [ [[package]] name = "embeddingbuddy" -version = "0.8.0" +version = "0.8.1" source = { editable = "." } dependencies = [ { name = "dash" },