MCPcopy Create free account
hub / github.com/StackStorm/st2 / _get_plugin_module

Function _get_plugin_module

st2common/st2common/util/loader.py:56–62  ·  view source on GitHub ↗
(plugin_file_path)

Source from the content-addressed store, hash-verified

54
55
56def _get_plugin_module(plugin_file_path):
57 plugin_module = os.path.basename(plugin_file_path)
58 if plugin_module.endswith(PYTHON_EXTENSION):
59 plugin_module = plugin_module[: plugin_module.rfind(".py")]
60 else:
61 plugin_module = None
62 return plugin_module
63
64
65def _get_classes_in_module(module):

Callers 2

register_plugin_classFunction · 0.85
register_pluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected