38 lua_State *
L = luaL_newstate();
47 int status = luaL_loadfile(L, f.c_str());
51 std::cout <<std::endl <<
"Couldn't load file: " <<lua_tostring(L, -1);
56 int result = lua_pcall(L, 0, 0, 0);
60 std::cout <<std::endl <<
"Failed to run script: " <<lua_tostring(L, -1);
TECOREEXPORT std::string FindInTerraLibPath(const std::string &path)
Returns the path relative to a directory or file in the context of TerraLib.