Tweak PR 269 for portable file-path

This commit is contained in:
Robin Gareus 2016-09-12 12:05:03 +02:00
parent cf0d06c137
commit 37f7d7595c

View File

@ -45,7 +45,7 @@ function factory (unused_params) return function ()
table.insert(chaps, "00:00:00.000 Intro\n")
table.sort(chaps)
file = io.open(string.format("%s/export/mp4chaps.txt", Session:path()), "w")
file = io.open(ARDOUR.LuaAPI.build_filename (Session:path(), "export", "mp4chaps.txt"), "w")
for i, line in ipairs(chaps) do
file:write(line)
end