Open steveRoll-git opened 1 year ago
This can be sorta fixed by requiring peachy with require "lib.peachy.init"
yeah I noticed this a while ago and figured out that this:
local json = require(.....".lib.json")
local cron = require(.....".lib.cron")
seems to work just fine? I didn't push it up because I don't understand why it works really (besides looking a little silly).
When the
peachy
directory is right at the project's root, doingrequire "peachy"
works fine. But if you place peachy in your own subdirectory, for examplelib/peachy
, requiring withrequire "lib.peachy"
breaks peachy's own imports:This probably happens because of how the library tries to detect the directory that it was required from: