diff options
| author | Phil Hagelberg <phil@hagelb.org> | 2018-10-31 17:16:15 -0700 |
|---|---|---|
| committer | Phil Hagelberg <phil@hagelb.org> | 2018-10-31 17:16:15 -0700 |
| commit | 30fa87ca7f76a21f22638ff4528bbb5cd7495099 (patch) | |
| tree | 8aeb23d445de5e83776c084cfc69feb6fb07591a /main.lua | |
| parent | ce12de2edaa4dbb0d1076e41580b48f6db8631d4 (diff) | |
Don't assume PWD is the checkout root.
The AppImage version of love2d changes to a temporary directory before
running, so you have to explicitly specify the full path; relative
paths won't be correct.
This won't fix the problem when running from a .love file; in that
case you would need to do AOT compilation and include the .lua output
inside the archive, but it's a start for folks running from source.
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4,4 +4,5 @@ table.insert(package.loaders, fennel.make_searcher({correlate=true})) pp = function(x) print(require("lib.fennelview")(x)) end lume = require("lib.lume") +fennel.path = love.filesystem.getSource() .. "/?.fnl" require("wrap") |