lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


You forgot to call the config_function. loadfile() compiles the
script, but does not run it.

> config ={}
> function load_config()
>        local config_file_name = gre.SCRIPT_ROOT .. "/../runtime_config.txt"
>        local config_function = assert(loadfile(config_file_name))
>        setfenv(config_function, config)

+        config_function()

>        dump_table(config)
> end

Regards,
-- Pierre-Yves