lua-users home
lua-l archive

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


Hi,

Bradley Smith wrote:
Hakki Dogusan wrote:
I tried your module structure, but it didn't worked on Ubuntu-7.10 (it is working on winxp). What could be the reason?

Lua 5.1.2  Copyright (C) 1994-2007 Lua.org, PUC-Rio
 > package.path="?;./?.lua;./?/init.lua"
 > require"app"
error loading module 'app' from file 'app':
        cannot read app: Is a directory
stack traceback:
        [C]: ?
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: ?
 >

"app" directory and "init.lua" exist.


Try package.path="./?.lua;./?/init.lua"




Yes, it works. Thank you.


--
Regards,
Hakki Dogusan