From 33728ad3382d74281412d4556561d479bb88832b Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Tue, 8 Oct 2013 18:50:56 +0300 Subject: changed module paths from acf to acf2 --- acf/loader.lua | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 acf/loader.lua (limited to 'acf/loader.lua') diff --git a/acf/loader.lua b/acf/loader.lua deleted file mode 100644 index 13b2db0..0000000 --- a/acf/loader.lua +++ /dev/null @@ -1,23 +0,0 @@ ---[[ -Copyright (c) 2012-2013 Kaarle Ritvanen -See LICENSE file for license details ---]] - -module(..., package.seeall) - -local pth = require('acf.path') - -local posix = require('posix') -local stringy = require('stringy') - -return function(subdir) - local comps = pth.split('acf/'..subdir) - local res = {} - for _, modfile in ipairs(posix.dir(pth.join(unpack(comps)))) do - if stringy.endswith(modfile, '.lua') then - local name = modfile:sub(1, -5) - res[name] = require(table.concat(comps, '.')..'.'..name) - end - end - return res - end -- cgit v1.2.3