Tweak PR 269 for portable file-path
authorRobin Gareus <robin@gareus.org>
Mon, 12 Sep 2016 10:05:03 +0000 (12:05 +0200)
committerRobin Gareus <robin@gareus.org>
Mon, 12 Sep 2016 10:05:03 +0000 (12:05 +0200)
scripts/export_mp4chaps.lua

index 4adffe16ceb204531ae8bc960a1d19255f1a1a70..d5e7a5708e2e50606ecb1fe4f168bff0d1319adc 100644 (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