executables: Invoke loader to allow mixing of old and new import style
Now both require"util.foo" and require"prosody.util.foo" should be
equivalent.
--- a/prosody Tue Mar 21 14:33:29 2023 +0000
+++ b/prosody Fri Mar 17 16:29:07 2023 +0100
@@ -51,6 +51,10 @@
return os.exit(1);
end
+if not pcall(require, "prosody.loader") then
+ pcall(require, "loader");
+end
+
local startup = require "util.startup";
local async = require "util.async";
--- a/prosodyctl Tue Mar 21 14:33:29 2023 +0000
+++ b/prosodyctl Fri Mar 17 16:29:07 2023 +0100
@@ -51,6 +51,10 @@
return os.exit(1);
end
+if not pcall(require, "prosody.loader") then
+ pcall(require, "loader");
+end
+
local startup = require "util.startup";
startup.prosodyctl();