How Imports Work in Python
The Python import system is pretty straightforward... to a point. Importing code present in the same directory you’re working in is very different from importing between multiple files present in multiple directories. Through this post, I try to analyse the different import scenarios that one might encounter, hopefully making it easier to create your own packages.
Source: How Imports Work in Python, an article by Aniruddha Karajgi.