Cluain / Lua-Simple-XML-Parser

Read simple XML easily
153 stars 91 forks source link

require does not work #10

Open nekromoff opened 7 years ago

nekromoff commented 7 years ago

Error: main.lua:2: module 'xmlSimple.lua' not found: no field package.preload['xmlSimple.lua']

danweller18 commented 7 years ago

it works for me when I do package.path = package.path .. ";/<path_to_lua_file>/xmlSimple.lua" local xml = require("xmlSimple.lua").newParser()

see https://stackoverflow.com/questions/11868847/lua-require-function-on-a-full-path-name