mirror of
https://codeberg.org/prof_x_pvt_ltd/captive.whump.shanti-portal
synced 2024-08-14 22:46:42 +00:00
add config info to plugin arg dict.
This commit is contained in:
parent
daa1f55816
commit
bf3c01f59a
1 changed files with 4 additions and 0 deletions
|
@ -102,6 +102,10 @@ def dispatch_plugins():
|
||||||
if isinstance(value, (int, str, float, dict, set, tuple)):
|
if isinstance(value, (int, str, float, dict, set, tuple)):
|
||||||
arg['environ'][key] = value
|
arg['environ'][key] = value
|
||||||
|
|
||||||
|
# Import all the plugin configuration values as OrderedDict
|
||||||
|
config_sections = plugin_config._sections
|
||||||
|
arg['config'] = config_sections[plugin]
|
||||||
|
|
||||||
# Import the plugin
|
# Import the plugin
|
||||||
try:
|
try:
|
||||||
plugin_module = import_module('plugins.'+plugin)
|
plugin_module = import_module('plugins.'+plugin)
|
||||||
|
|
Loading…
Reference in a new issue