I have fixed my issue, it turns out it was what I was inputting into the importlib.import_module
.
The answer to the question tho, should be adding __init__.py
files into the directories that will be packages. The __init__.py
files are fine being empty but can have contents within.
Helpful links
Thank you @joanis for the solution to my problem and thank you to everyone else who helped for the solution to the original question.