- PYTHONPATH
- .pth
path to load modules from - The module search path
There are several steps Python does when it searches for the location of a file to be imported, but the most important
one is what we see on the next page in sys.path.
- The directory where the main script is located.
- The directories listed in PYTHONPATH environment variable.
- Directories of standard libraries.
- Directories listed in .pth files.
- The site-packages home of third-party extensions.