net.server_select: Default checkinterval to 30s, so that read timeouts are actually...
[prosody.git] / tools / ejabberd2prosody.lua
index ee9e782101e439d74537244e7f8fc37df40bada3..c11e41d9e602676fba2f935600ad2b71f4b917ba 100755 (executable)
@@ -11,8 +11,8 @@
 
 package.path = package.path ..";../?.lua";
 
-if arg[0]:match("^./") then
-       package.path = package.path .. ";"..arg[0]:gsub("/ejabberd2prosody.lua$", "/?.lua");
+if arg[0]:match("[/\\]") then
+       package.path = package.path .. ";"..arg[0]:gsub("[^/\\]*$", "?.lua");
 end
 
 local erlparse = require "erlparse";