MCPcopy Index your code
hub / github.com/aws/aws-cli / _import_plugins

Function _import_plugins

awscli/plugin.py:98–108  ·  view source on GitHub ↗
(plugin_mapping)

Source from the content-addressed store, hash-verified

96
97
98def _import_plugins(plugin_mapping):
99 plugins = []
100 for name, path in plugin_mapping.items():
101 log.debug("Importing plugin %s: %s", name, path)
102 if '.' not in path:
103 plugins.append(__import__(path))
104 else:
105 package, module = path.rsplit('.', 1)
106 module = __import__(path, fromlist=[module])
107 plugins.append(module)
108 return plugins
109
110
111def _add_plugin_path_to_sys_path(plugin_path):

Callers 1

_load_pluginsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected