In Python, when importing functions defined in files at different folder level, it is painful because you have to handle the relative path explicitly.
One of the easy way to mitigate this problem is to use the setuptool to convert your top level folder into a package and install it through
pip install -e.
Also, during the process, if you put the setup.py at wrong location, you could end up with ModuleNotFoundError.
Hopefully, my video would help you solve those issues.
00:00 Introduction
01:45 Why to use setuptool
11:30 Common mistake: ModuleNotFound
20:23 Summarize
On this page of the site you can watch the video online Python- Use setuptools to handle relative path problem with a duration of hours minute second in good quality, which was uploaded by the user Super Engineer 21 November 2023, share the link with friends and acquaintances, this video has already been watched 94 times on youtube and it was liked by 0 viewers. Enjoy your viewing!