From d3a17ed2c3fabf376f8752d53729a2352e83b45c Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Tue, 11 Nov 2008 19:16:49 +0000 Subject: Cleaned up package path code in roles. git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1593 ab2d0c66-481e-0410-8bed-d214d4d58bed --- lib/roles.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/roles.lua') diff --git a/lib/roles.lua b/lib/roles.lua index dcf2bd9..e6e6515 100644 --- a/lib/roles.lua +++ b/lib/roles.lua @@ -57,8 +57,10 @@ get_controllers_func = function(self,controller_info) if controller_info == nil then return "Could not be processed" else - package.path=package.path .. ";" .. controller_info.path .. "?.lua" + local PATH = package.path + package.path = controller_info.path .. "?.lua;" .. package.path temp = require (controller_info.name) + package.path = PATH temp1 = {} for a,b in pairs(temp) do local c = string.match(a,"^mvc") or string.match(a,"^_") @@ -66,8 +68,6 @@ get_controllers_func = function(self,controller_info) temp1[#temp1 +1] = a end end - --require (controller_info.name) - --we need to go through bobo and take out the mvc func and locals and -- return temp1 end end -- cgit v1.2.3