aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/make-feed.lua b/make-feed.lua
index 77faa41..4faf0b0 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -12,6 +12,13 @@ local args = {macros = "/home/g/subs/automation-scripts/macros", modules = "/ho
local config = loadfile(args.config)()
+local function script_path()
+ local str = debug.getinfo(2, "S").source:sub(2)
+ return str:match("(.*/)")
+end
+
+package.path = script_path() .. "?.lua;" .. package.path -- add the script dir to the lua path so scripts can access the fake depctrl
+
local function valid_namespace(name)
--[[ #### Rules for a valid namespace: ####