Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/plugins.py
blob: 7bb5147c60cf3546536009480fe708f38c5f04a3 (plain)
1
2
3
4
5
6
7
8
9
10
from importlib import metadata

plugins = {}

# 1: List archinstall.plugin definitions
# 2: Load the plugin entrypoint
# 3: Initiate the plugin and store it as .name in plugins
for plugin_definition in metadata.entry_points()['archinstall.plugin']:
	plugin_entrypoint = plugin_definition.load()
	plugins[plugin_definition.name] = plugin_entrypoint()