Understanding Python Relative Imports

One thing that has always tripped me up with Python is the import system. Everytime I think I understand how it works, I run some code and get more import errors. But I think I now have a complete understanding of how it works, so let's dive in. What is sys.path ? To see how the Python import system works, we have to start by understanding where Python looks for code when there is an import. This…