fix: use dataDir var in requirePaths

dev
sammyette 2021-10-17 23:00:38 -04:00
parent b1f4efd9ac
commit 00f41a95bc
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ package main
// String vars that are free to be changed at compile time
var (
requirePaths = commonRequirePaths + `
.. ';/usr/share/hilbish/libs/?/init.lua;'
.. ';/usr/share/hilbish/libs/?/?.lua;'` + linuxUserPaths
.. ';` + dataDir + `/libs/?/init.lua;'
.. ';` + dataDir + `/libs/?/?.lua;'` + linuxUserPaths
linuxUserPaths = `
.. hilbish.xdg.data .. '/hilbish/libs/?/init.lua;'
.. hilbish.xdg.data .. '/hilbish/libs/?/?.lua;'