Ubuntu – Python can't see a new module in a directory it already imported from
In this test, I create a new directory (deleting it if it already exists), add it to sys.path, add two simple Python files, and try to import them. I'm using Python 3.11.6 on Ubuntu 23.10. import sys from pathlib import…