We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67c3d1c commit 7123991Copy full SHA for 7123991
myDevices/plugins/manager.py
@@ -57,7 +57,7 @@ def load_plugin_from_file(self, filename):
57
if 'init_args' not in plugin:
58
plugin['init_args'] = '{}'
59
self.override_plugin_value(config, section, 'init_args', plugin)
60
- if not inherit_items or inherit_items['class'] is not plugin['class'] or inherit_items['init_args'] is not plugin['init_args']:
+ if not inherit_items or [key for key in ('module', 'class', 'init_args') if inherit_items[key] is not plugin[key]]:
61
info('Creating instance of {} for {}'.format(plugin['class'], plugin['name']))
62
folder = os.path.dirname(filename)
63
if folder not in sys.path:
0 commit comments