Software /
code /
prosody
Comparison
util/paths.lua @ 10204:fbd4a5bc3a01
util.paths: Fixed file termination for package.cpath's extra path
author | João Duarte <jvsDuarte08@gmail.com> |
---|---|
date | Fri, 16 Aug 2019 10:44:10 -0700 |
parent | 10200:48ee50ed9972 |
child | 10402:0971694b30a8 |
comparison
equal
deleted
inserted
replaced
10203:3beb37ed7f32 | 10204:fbd4a5bc3a01 |
---|---|
51 if not string.match(package.path, installer_plugin_path) then | 51 if not string.match(package.path, installer_plugin_path) then |
52 package.path = package.path..lua_path_sep..installer_plugin_path..dir_sep.."share"..sub_path.."?.lua"; | 52 package.path = package.path..lua_path_sep..installer_plugin_path..dir_sep.."share"..sub_path.."?.lua"; |
53 package.path = package.path..lua_path_sep..installer_plugin_path..dir_sep.."share"..sub_path.."?"..dir_sep.."init.lua"; | 53 package.path = package.path..lua_path_sep..installer_plugin_path..dir_sep.."share"..sub_path.."?"..dir_sep.."init.lua"; |
54 end | 54 end |
55 if not string.match(package.path, installer_plugin_path) then | 55 if not string.match(package.path, installer_plugin_path) then |
56 package.cpath = package.cpath..lua_path_sep..installer_plugin_path..dir_sep.."lib"..sub_path.."?.lua"; | 56 package.cpath = package.cpath..lua_path_sep..installer_plugin_path..dir_sep.."lib"..sub_path.."?.so"; |
57 end | 57 end |
58 end | 58 end |
59 | 59 |
60 return path_util; | 60 return path_util; |