How-to articles, tricks, and solutions about PYTHONPATH

How do I find out my PYTHONPATH using Python?

You can use the sys module in Python to access the sys.path variable, which contains a list of directories that Python looks in for modules to import.

How to add to the PYTHONPATH in Windows, so it finds my modules/packages?

In Windows, you can add to the PYTHONPATH environment variable to make sure that Python can find your modules and packages.