aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/moduleapi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/moduleapi.lua b/core/moduleapi.lua
index 1212db5a..0f43478c 100644
--- a/core/moduleapi.lua
+++ b/core/moduleapi.lua
@@ -500,7 +500,7 @@ function api:get_directory()
end
function api:load_resource(path, mode)
- path = resolve_relative_path(self:get_directory(), path);
+ path = resolve_relative_path(self.resource_path or self:get_directory(), path);
return io.open(path, mode);
end