3467: Exporter returns an error, but it exports fine if we try once more during session

svn: r13892
This commit is contained in:
Doug Blank 2009-12-23 11:42:05 +00:00
parent d50a004450
commit eb23cfd76f

View File

@ -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