feat: use dataDir in requirePaths

dev
sammyette 2021-10-17 23:14:18 -04:00
parent 87fcdd3c10
commit 2cf979401b
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 3 additions and 3 deletions

View File

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