From 802cb43c1a63c8a2df14f05d95745882044bea37 Mon Sep 17 00:00:00 2001 From: Rushmore75 Date: Tue, 25 Mar 2025 14:00:10 -0600 Subject: [PATCH] place xml in absolute location --- src/strong.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strong.rs b/src/strong.rs index 43f36c7..f0241ce 100644 --- a/src/strong.rs +++ b/src/strong.rs @@ -6,7 +6,7 @@ use serde::Deserialize; pub fn get(query: &str) -> Option { // TODO Put this in a singleton - let file = read_to_string("./HebrewLexicon/HebrewStrong.xml").unwrap(); + let file = read_to_string("/usr/local/bible/HebrewStrong.xml").expect("Failed to get the strong xml file. It's expect to be at:\n/usr/local/bible/HebrewString.xml\n\n"); let obj: HebrewStrong = from_str(&file).unwrap(); // Yes, dumb search is ok. Searching for the last element took 2ms