filesystem.include doesn't work in subdirectories

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
Kaze
Party member
Posts: 189
Joined: Sat Jul 19, 2008 4:39 pm
Location: Dublin, Ireland

filesystem.include doesn't work in subdirectories

Post by Kaze »

I was planning on having Leif in one folder, just ran into this problem (as I'm currently rewriting it);

Code: Select all

main.lua -- includes Leif/Leif.lua
Leif ->
    Leif.lua -- trys to include lib/util.lua - fails - Leif/lib/util.lua works, though.
    lib ->
        util.lua
User avatar
Kuromeku
Party member
Posts: 166
Joined: Sun Jul 20, 2008 5:45 pm

Re: filesystem.include doesn't work in subdirectories

Post by Kuromeku »

Apparently you have to use the full path.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 2 guests