From 5bd1ca65de69a2ab8148fba4ec292953f31413c8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 22 Sep 2012 19:24:30 -0400 Subject: Fixes to Lua paths. Do not look in the current working directory for modules. Look in _USERHOME for shared libraries. --- init.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 7edee90a..60c157c4 100644 --- a/init.lua +++ b/init.lua @@ -6,6 +6,8 @@ package.path = table.concat({ _HOME..'/modules/?.lua', _HOME..'/modules/?/init.lua', package.path }, ';'); +local so = not WIN32 and '/?.so;' or '/?.dll;' +package.cpath = _USERHOME..so.._USERHOME..'/modules'..so..package.cpath local user_init, exists = _USERHOME..'/init.lua', lfs.attributes local ok, err = pcall(dofile, user_init) -- cgit v1.2.3