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
|
continue
|
||||||
mod = self.load_plugin(pdata)
|
mod = self.load_plugin(pdata)
|
||||||
if mod:
|
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,
|
exp = gen.plug.ExportPlugin(name=pdata.name,
|
||||||
description = pdata.description,
|
description = pdata.description,
|
||||||
export_function = getattr(mod, pdata.export_function),
|
export_function = getattr(mod, pdata.export_function),
|
||||||
extension = pdata.extension,
|
extension = pdata.extension,
|
||||||
config = (pdata.export_options_title,
|
config = (pdata.export_options_title, options))
|
||||||
getattr(mod, pdata.export_options)))
|
|
||||||
self.__export_plugins.append(exp)
|
self.__export_plugins.append(exp)
|
||||||
|
|
||||||
return self.__export_plugins
|
return self.__export_plugins
|
||||||
|
Loading…
Reference in New Issue
Block a user