summaryrefslogtreecommitdiff
path: root/src/lua/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/runtime.rs')
-rw-r--r--src/lua/runtime.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/runtime.rs b/src/lua/runtime.rs
index 6a0a230..71bf21a 100644
--- a/src/lua/runtime.rs
+++ b/src/lua/runtime.rs
@@ -50,10 +50,10 @@ pub fn package(lua: &Lua) -> Result<()> {
"path",
format!(
"{}/?.lua;{}/?/init.lua;{}/lib/?.lua;{}/lib/?/init.lua;{};./?.lua",
- config::constants::USER_CONFIG_DIR.as_str(),
- config::constants::USER_CONFIG_DIR.as_str(),
- config::constants::USER_CONFIG_DIR.as_str(),
- config::constants::USER_CONFIG_DIR.as_str(),
+ config::env::USER_CONFIG_DIR.as_str(),
+ config::env::USER_CONFIG_DIR.as_str(),
+ config::env::USER_CONFIG_DIR.as_str(),
+ config::env::USER_CONFIG_DIR.as_str(),
path.split(';')
.filter(|s| s.starts_with('/'))
.collect::<Vec<&str>>()