Added __file__ to plugin registration environment (to retrieve addon translations)

svn: r13477
This commit is contained in:
Doug Blank 2009-11-01 14:30:56 +00:00
parent 0f61597985
commit ba897a8e0f

View File

@ -797,6 +797,7 @@ class PluginRegister(object):
'TOOL_MODE_GUI': TOOL_MODE_GUI, 'TOOL_MODE_GUI': TOOL_MODE_GUI,
'TOOL_MODE_CLI': TOOL_MODE_CLI, 'TOOL_MODE_CLI': TOOL_MODE_CLI,
'GRAMPSVERSION': GRAMPSVERSION, 'GRAMPSVERSION': GRAMPSVERSION,
'__file__': os.path.join(dir, filename),
}, },
{}) {})
except ValueError, msg: except ValueError, msg: