Skip to content

Commit

Permalink
Fix the lua path in shortbread too
Browse files Browse the repository at this point in the history
  • Loading branch information
pnorman committed Sep 19, 2024
1 parent b6ad5a4 commit f002046
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions shortbread.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ local themepark = require('themepark')

themepark.debug = false

-- Tell themepark where the themes are in case it's not the current working directory
local spirit_path = debug.getinfo(1, "S").source:sub(2):match("(.*/)")

if spirit_path ~= nil then
-- theme_path[1] is the osm2pgsql-themepark location, but it doesn't pick up the spirit location
themepark.theme_path[2] = spirit_path..'themes/'
end

themepark:add_topic('core/name-with-fallback', {
keys = {
name = { 'name', 'name:en', 'name:de' },
Expand Down

0 comments on commit f002046

Please sign in to comment.