webmcp

changeset 43:3198806c7904

Changes of code style in webmcp.lua
author jbe
date Sat Oct 16 17:58:23 2010 +0200 (2010-10-16)
parents 5ce77ccdd550
children 9b93943e2e6e
files framework/cgi-bin/webmcp.lua
line diff
     1.1 --- a/framework/cgi-bin/webmcp.lua	Sat Oct 16 17:55:15 2010 +0200
     1.2 +++ b/framework/cgi-bin/webmcp.lua	Sat Oct 16 17:58:23 2010 +0200
     1.3 @@ -8,7 +8,7 @@
     1.4  end
     1.5  
     1.6  do
     1.7 -  package.path = WEBMCP_PATH..'lib/?.lua;' .. package.path
     1.8 +  package.path = WEBMCP_PATH .. 'lib/?.lua;' .. package.path
     1.9    -- find out which file name extension shared libraries have
    1.10    local slib_exts = {}
    1.11    for ext in string.gmatch(package.cpath, "%?%.([A-Za-z0-9_-]+)") do
    1.12 @@ -16,10 +16,10 @@
    1.13    end
    1.14    local paths = {}
    1.15    for ext in pairs(slib_exts) do
    1.16 -    paths[#paths+1] = WEBMCP_PATH.."accelerator/?." .. ext
    1.17 +    paths[#paths+1] = WEBMCP_PATH .. "accelerator/?." .. ext
    1.18    end
    1.19    for ext in pairs(slib_exts) do
    1.20 -    paths[#paths+1] = WEBMCP_PATH.."lib/?." .. ext
    1.21 +    paths[#paths+1] = WEBMCP_PATH .. "lib/?." .. ext
    1.22    end
    1.23    paths[#paths+1] = package.cpath
    1.24    package.cpath = table.concat(paths, ";")
    1.25 @@ -163,7 +163,7 @@
    1.26        not string.find(key, "^__")
    1.27      then
    1.28        category        = "env"
    1.29 -      base_path       = WEBMCP_PATH.."/env/"
    1.30 +      base_path       = WEBMCP_PATH .. "/env/"
    1.31        merge           = true
    1.32        merge_base_path = app_base .. "/env/"
    1.33        file_key        = key
    1.34 @@ -219,7 +219,7 @@
    1.35      return rawget(self, key)
    1.36    end
    1.37    install_autoloader(_G, nil, {})
    1.38 -  try_exec(WEBMCP_PATH.."env/__init.lua")
    1.39 +  try_exec(WEBMCP_PATH .. "env/__init.lua")
    1.40  end
    1.41  
    1.42  -- interactive console mode

Impressum / About Us