diff options
Diffstat (limited to 'src/lua')
| -rw-r--r-- | src/lua/runtime.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lua/runtime.rs b/src/lua/runtime.rs index 4e8c52b..ce34827 100644 --- a/src/lua/runtime.rs +++ b/src/lua/runtime.rs @@ -45,10 +45,10 @@ pub fn package(lua: &Lua) -> Result<()> { package.set( "path", format!( - "{};{}/?.lua;{}/?/init.lua", - path, + "{}/?.lua;{}/?/init.lua;{};./?.lua", config::constants::USER_CONFIG_DIR.as_str(), - config::constants::USER_CONFIG_DIR.as_str() + config::constants::USER_CONFIG_DIR.as_str(), + path.split(';').filter(|s| s.starts_with('/')).collect::<Vec<&str>>().join(";"), ), )?; Ok(()) |