lua-users home
lua-l archive

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

Thanks for the reply. Yes you are right. The script file myfuns.lua in our case to be loaded should be in the path of executable(no file 'C:\Program Files (x86)\Lua\5.1\). I interpreted in a wrong way.

On Thu, May 9, 2013 at 5:11 PM, steve donovan <> wrote:
On Thu, May 9, 2013 at 1:38 PM, Muqtheear S <> wrote:
"module 'myfuns.lua' not found:
    no field package.preload['myfuns']
    no file '.\myfuns.lua'
    no file 'C:\Program Files (x86)\Lua\5.1\lua\myfuns.lua'

The error message is giving you a clue;  if you were to copy your myfuns.lua into that directory "C:\Program Files (x86)\Lua\5.1\lua" then it will work.