# HG changeset patch # User Kim Alvefur # Date 1394399740 -3600 # Node ID dd3d4cfbd3cb50bb554581aa1780f5320c1cee62 # Parent 8a8be471ec72abfbd39c3f03d28c469f7f866252 util.pluginloader: Always use path separator from package.config (thanks Junne) diff -r 8a8be471ec72 -r dd3d4cfbd3cb util/pluginloader.lua --- a/util/pluginloader.lua Wed Feb 26 22:19:58 2014 +0100 +++ b/util/pluginloader.lua Sun Mar 09 22:15:40 2014 +0100 @@ -39,10 +39,10 @@ resource = resource or "mod_"..plugin..".lua"; local names = { - "mod_"..plugin.."/"..plugin.."/"..resource; -- mod_hello/hello/mod_hello.lua - "mod_"..plugin.."/"..resource; -- mod_hello/mod_hello.lua - plugin.."/"..resource; -- hello/mod_hello.lua - resource; -- mod_hello.lua + "mod_"..plugin..dir_sep..plugin..dir_sep..resource; -- mod_hello/hello/mod_hello.lua + "mod_"..plugin..dir_sep..resource; -- mod_hello/mod_hello.lua + plugin..dir_sep..resource; -- hello/mod_hello.lua + resource; -- mod_hello.lua }; return load_file(names);