place xml in absolute location

This commit is contained in:
Rushmore75 2025-03-25 14:00:10 -06:00
parent abda6bab95
commit 802cb43c1a

View File

@ -6,7 +6,7 @@ use serde::Deserialize;
pub fn get(query: &str) -> Option<Entry> {
// 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