#python every other time you reference a file, python says it can't find it, it searches for files relative to where python was executed. Having to do this for every open(), it seems like open() is brain-damaged:
os.path.join(os.path.dirname(os.path.abspath(__file__)), file_name)
Post
February 8, 2021