From the docs, what we do is make a
.plugin file and tell Builder which file (
Module) to look and if it is Python (
# my_plugin.plugin [Plugin] Name=My Plugin Loader=python3 Module=my_plugin Author=Angela Avery
Now how does Builder know which
class in the file is the plugin and which one should be initialized ? Does it use of help of
ast module? (A Python module to make syntax tree for a Python file). Like parsing the file, getting all the declared classes and check if they are instance of an abstract plugin class?
I want to mimic a kinda same behaviour for my plugin system and curiosity are the reasons for this question.