2 ms·
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.
by IgorPartola 6y ago
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.
- codethief 6y agoGood point! Does it follow symlinks before setting __file__? Because in the context of imports it does: https://docs.python.org/3/tutorial/modules.html#the-module-search-path https://docs.python.org/3/tutorial/modules.html#the-module-s... > 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.