'Python docs on symlinked search path is not clear

The docs say this on symlinks:

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.

What symlink is meant here? A directory symlink or the script file symlink?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source