use dt.gettext after defining dt to avoid fatal error

This commit is contained in:
chrisaga
2017-09-02 14:30:52 +02:00
committed by GitHub
parent 4e3b461fd3
commit a826c1725b

View File

@@ -33,10 +33,10 @@ USAGE
This plugin will add a new storage option and calls hugin after export.
]]
local gettext = dt.gettext
local dt = require "darktable"
local df = require "lib/dtutils.file"
require "official/yield"
local gettext = dt.gettext
-- works with darktable API version from 2.0.0 to 5.0.0
dt.configuration.check_version(...,{2,0,0},{3,0,0},{4,0,0},{5,0,0})