Python runs some startup code that prepares sys.path
.
This includes finding .pth
files in known directories:
- These files can contain paths that are added to
sys.path
. - They can also contain
import
statements, and be (ab)used to run code at startup!