refatoring: lazy loading of packages

This commit is contained in:
chrox
2014-10-03 16:11:53 +08:00
parent a491594775
commit 14e2bf3d69
6 changed files with 22 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
#!./koreader-base
#!./luajit
require "defaults"
pcall(dofile, "defaults.persistent.lua")
@@ -100,6 +100,7 @@ local function showusage()
return
end
local ARGV = arg
local argidx = 1
while argidx <= #ARGV do
local arg = ARGV[argidx]