Paths for modules

Hello,

I ran into following error:

[lua]display.newImage(“Media/GFX/back.png”, 0, 0, true)[/lua]

works fine. But this:

[lua]local whatever = require(“Util/foo”)[/lua]

does not work (on Android but in the Corona Simulator). So is this a bug or a feature? :slight_smile:

I mean I could put all the modules in one giant directory but this will result in a huge mess.
So did anyone come across this problem or am I doing something wrong?
[import]uid: 11772 topic_id: 4437 reply_id: 304437[/import]

Yep seems to work with image and audio resources but not code modules.

Likewise Corona emulator is not case sensitive with module names but build applications are.

I know of no way to subdir module files. I just suck it up and give them categorised prefix names eg:

gfx_anim.lua
gfx_load.lua
gfx_lib.lua
screen_state.lua
screen_init.lua
etc.

[import]uid: 11393 topic_id: 4437 reply_id: 13986[/import]

Thanks for the answer, yeah I already thought that it is a bug. I guess I’ll use your solution till they fix it, if they fix it.

Cheers! [import]uid: 11772 topic_id: 4437 reply_id: 14005[/import]