Skip to content

Commit

Permalink
chore(cli): Fall back to build time configured data dir, not SILE_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
alerque committed Sep 21, 2023
1 parent d387816 commit 5df7ff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pub fn version() -> crate::Result<String> {
let lua = unsafe { Lua::unsafe_new() };
let sile_path = match env::var("SILE_PATH") {
Ok(val) => val,
Err(_) => env!("SILE_PATH").to_string(),
Err(_) => env!("CONFIGURE_DATADIR").to_string(),
};
let sile_path: LuaString = lua.create_string(&sile_path)?;
let sile: LuaTable = lua
Expand Down Expand Up @@ -49,7 +49,7 @@ pub fn run(
let lua = unsafe { Lua::unsafe_new() };
let sile_path = match env::var("SILE_PATH") {
Ok(val) => val,
Err(_) => env!("SILE_PATH").to_string(),
Err(_) => env!("CONFIGURE_DATADIR").to_string(),
};
let sile_path: LuaString = lua.create_string(&sile_path)?;
let sile: LuaTable = lua
Expand Down

0 comments on commit 5df7ff8

Please sign in to comment.