core/moduleapi.lua
changeset 6165 6a184b16b717
parent 5825 ac5e05ffc921
child 6168 3942630b4e35
child 6417 31c15004bfb0
--- a/core/moduleapi.lua	Fri May 09 19:34:35 2014 +0200
+++ b/core/moduleapi.lua	Fri May 09 19:35:29 2014 +0200
@@ -13,6 +13,7 @@
 local logger = require "util.logger";
 local pluginloader = require "util.pluginloader";
 local timer = require "util.timer";
+local resolve_relative_path = require"util.paths".resolve_relative_path;
 
 local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat;
 local error, setmetatable, type = error, setmetatable, type;
@@ -360,7 +361,7 @@
 end
 
 function api:load_resource(path, mode)
-	path = config.resolve_relative_path(self:get_directory(), path);
+	path = resolve_relative_path(self:get_directory(), path);
 	return io.open(path, mode);
 end