diff options
author | 2012-09-22 19:24:30 -0400 | |
---|---|---|
committer | 2012-09-22 19:24:30 -0400 | |
commit | 5bd1ca65de69a2ab8148fba4ec292953f31413c8 (patch) | |
tree | b9b2ce0c9c712e168f20690614cf96adb7376a65 /init.lua | |
parent | e6b40a963768b9a900f5a8938718fe415a7a7b1a (diff) | |
download | textadept-5bd1ca65de69a2ab8148fba4ec292953f31413c8.tar.gz textadept-5bd1ca65de69a2ab8148fba4ec292953f31413c8.zip |
Fixes to Lua paths.
Do not look in the current working directory for modules.
Look in _USERHOME for shared libraries.
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |