3467: Exporter returns an error, but it exports fine if we try once more during session
svn: r13892
This commit is contained in:
parent
d50a004450
commit
eb23cfd76f
@ -311,12 +311,15 @@ class BasePluginManager(object):
|
||||
continue
|
||||
mod = self.load_plugin(pdata)
|
||||
if mod:
|
||||
options = None
|
||||
if (pdata.export_options and
|
||||
hasattr(mod, pdata.export_options)):
|
||||
options = getattr(mod, pdata.export_options)
|
||||
exp = gen.plug.ExportPlugin(name=pdata.name,
|
||||
description = pdata.description,
|
||||
export_function = getattr(mod, pdata.export_function),
|
||||
extension = pdata.extension,
|
||||
config = (pdata.export_options_title,
|
||||
getattr(mod, pdata.export_options)))
|
||||
config = (pdata.export_options_title, options))
|
||||
self.__export_plugins.append(exp)
|
||||
|
||||
return self.__export_plugins
|
||||
|
Loading…
Reference in New Issue
Block a user