newThread filename path restrictions
Posted: Sun Jun 04, 2023 7:59 pm
Hiya,
I'm running into an issue with newThread()
my code base is organised in a way where i have a shared folder with reusable code called lib for many different apps to use:
for this to work nicely i just add a
Now i have a nicely threaded piece of code that handles my audio system, and I would like to put that piece of code in the 'lib/' folder, but newThread is not having it.
It basically does'nt allow to look for a file that would end up outside, in the parent of the love folder where the main.lua is itself. Basically the limitation of lua filesystem I believe.
anyway, is there something i can do about this ? I don't really wanna have to copy this single file in all the various app folders and keep track of changing all of them in the future.
I'm running into an issue with newThread()
my code base is organised in a way where i have a shared folder with reusable code called lib for many different apps to use:
Code: Select all
root/
lib/
all_the_apps/
app1/
main.lua
app2/
main.lua
Code: Select all
package.path = package.path .. ";../../?.lua"
It basically does'nt allow to look for a file that would end up outside, in the parent of the love folder where the main.lua is itself. Basically the limitation of lua filesystem I believe.
anyway, is there something i can do about this ? I don't really wanna have to copy this single file in all the various app folders and keep track of changing all of them in the future.