fix path to sample-txt.md
Some checks failed
Security Scan / security (push) Failing after 10s
Security Scan / dependency-check (push) Successful in 28s
Test Suite / lint (push) Successful in 24s
Test Suite / test (3.11) (push) Successful in 1m28s
Test Suite / build (push) Successful in 39s

This commit is contained in:
2025-10-02 08:15:33 -07:00
parent 2d4bc5fa2f
commit 478dc3a8a1
2 changed files with 5 additions and 7 deletions

View File

@@ -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:

2
uv.lock generated
View File

@@ -412,7 +412,7 @@ wheels = [
[[package]]
name = "embeddingbuddy"
version = "0.8.0"
version = "0.8.1"
source = { editable = "." }
dependencies = [
{ name = "dash" },