> – “Python now gets the absolute path of the script filename specified on the command line (ex: python3 script.py): the __file__ attribute of the __main__ module became an absolute path, rather than a relative path.”
Good lord, finally! The number of times I've tripped over this.
And when it’s coming via a symlink. And on a networked file system that’s been remounted a couple of times. And parts of it are bound to other parts of it. FML.
> Note: On file systems which support symlinks, the directory containing the input script is calculated after the symlink is followed. In other words the directory containing the symlink is not added to the module search path.
Good lord, finally! The number of times I've tripped over this.