diff options
author | daurnimator <quae@daurnimator.com> | 2018-04-03 22:02:28 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2018-04-03 22:03:19 +1000 |
commit | c8392f40edd45367b4cde01ac80c070ae5a8240b (patch) | |
tree | 99353b18d9a29aa07c73c4844a2f5200e227944e /src/luaconf.js | |
parent | fae2f9e118a1dcccffb4e1326d5c603567be90f9 (diff) | |
download | fengari-c8392f40edd45367b4cde01ac80c070ae5a8240b.tar.gz fengari-c8392f40edd45367b4cde01ac80c070ae5a8240b.tar.bz2 fengari-c8392f40edd45367b4cde01ac80c070ae5a8240b.zip |
src/luaconf.js: Remove duplicate entries from LUA_PATH_DEFAULT
Closes #123
Diffstat (limited to 'src/luaconf.js')
-rw-r--r-- | src/luaconf.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/luaconf.js b/src/luaconf.js index 7a6fe40..387e813 100644 --- a/src/luaconf.js +++ b/src/luaconf.js @@ -43,12 +43,12 @@ if (typeof process === "undefined") { const LUA_LDIR = "./lua/" + LUA_VDIR + "/"; module.exports.LUA_LDIR = LUA_LDIR; - const LUA_JSDIR = "./lua/" + LUA_VDIR + "/"; + const LUA_JSDIR = LUA_LDIR; module.exports.LUA_JSDIR = LUA_JSDIR; const LUA_PATH_DEFAULT = to_luastring( LUA_LDIR + "?.lua;" + LUA_LDIR + "?/init.lua;" + - LUA_JSDIR + "?.lua;" + LUA_JSDIR + "?/init.lua;" + + /* LUA_JSDIR excluded as it is equal to LUA_LDIR */ "./?.lua;./?/init.lua" ); module.exports.LUA_PATH_DEFAULT = LUA_PATH_DEFAULT; @@ -100,15 +100,14 @@ if (typeof process === "undefined") { const LUA_LDIR2 = LUA_ROOT2 + "share/lua/" + LUA_VDIR + "/"; module.exports.LUA_LDIR = LUA_LDIR; - const LUA_JSDIR = LUA_ROOT + "share/lua/" + LUA_VDIR + "/"; + const LUA_JSDIR = LUA_LDIR; module.exports.LUA_JSDIR = LUA_JSDIR; - const LUA_JSDIR2 = LUA_ROOT2 + "share/lua/" + LUA_VDIR + "/"; + const LUA_JSDIR2 = LUA_LDIR2; const LUA_PATH_DEFAULT = to_luastring( LUA_LDIR + "?.lua;" + LUA_LDIR + "?/init.lua;" + LUA_LDIR2 + "?.lua;" + LUA_LDIR2 + "?/init.lua;" + - LUA_JSDIR + "?.lua;" + LUA_JSDIR + "?/init.lua;" + - LUA_JSDIR2 + "?.lua;" + LUA_JSDIR2 + "?/init.lua;" + + /* LUA_JSDIR(2) excluded as it is equal to LUA_LDIR(2) */ "./?.lua;./?/init.lua" ); module.exports.LUA_PATH_DEFAULT = LUA_PATH_DEFAULT; |