Comparison

tools/jabberd14sql2prosody.lua @ 6147:852bd69ba148

tools/jabberd14sql2prosody: Fix package.path (thanks daurnimator)
author Kim Alvefur <zash@zash.se>
date Tue, 22 Apr 2014 23:14:53 +0200
parent 5989:5aaddafe0beb
child 6149:2ae6e9063e88
comparison
equal deleted inserted replaced
6066:95b3a59d7932 6147:852bd69ba148
426 end 426 end
427 427
428 end 428 end
429 429
430 -- import modules 430 -- import modules
431 package.path = package.path.."..\?.lua;"; 431 package.path = package.path..";../?.lua;";
432 432
433 local my_name = arg[0]; 433 local my_name = arg[0];
434 if my_name:match("[/\\]") then 434 if my_name:match("[/\\]") then
435 package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua"); 435 package.path = package.path..";"..my_name:gsub("[^/\\]+$", "../?.lua");
436 package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so"); 436 package.cpath = package.cpath..";"..my_name:gsub("[^/\\]+$", "../?.so");