diff options
author | 2014-05-10 16:12:30 -0400 | |
---|---|---|
committer | 2014-05-10 16:12:30 -0400 | |
commit | 0973c9501b5f6d68e06960fbf57a45e215c78ac5 (patch) | |
tree | 0bb91982fa105e13afd07b8053de73048cabfc74 | |
parent | f35bab15d62ed798eb68ac69b439e2198c8fad31 (diff) | |
download | textadept-0973c9501b5f6d68e06960fbf57a45e215c78ac5.tar.gz textadept-0973c9501b5f6d68e06960fbf57a45e215c78ac5.zip |
Add "_HOME/modules" to `package.cpath`; init.lua
-rw-r--r-- | init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -6,8 +6,10 @@ 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 so = not WIN32 and '/?.so' or '/?.dll' +package.cpath = table.concat({ + _USERHOME..so, _USERHOME..'/modules'..so, _HOME..'/modules'..so, package.cpath +}, ';') textadept = require('textadept') local user_init = _USERHOME..'/init.lua' |