I have a parent class that provides abstract functions for manipulating hardware, and a directory full of classes that subclass this parent class, and provide hardware-speci
The basic idea of dividing the sub classes int different files and importing only what you need is very pythonic. Consider using a __init__.py
file in your subclasses' folder with an import SubClass1, SubClass2, SubClass3, ...
-command in it. Then you can just say in the main.py
:
import folderOfSubClasses
Then the __init__.py
file will be executed and you have the expected result.
I hope I could help you!