DS301222 #What is PYTHONPATH?

PYTHONPATH is an environment variable which the user can set to add additional directories that the user wants Python to add to the sys.path directory list. In short, we can say that it is an environment variable that you set before running the Python interpreter. Mostly you should not set these variables as they are not needed for Python to execute normal programs because it knows where its standard library is to be found. PYTHONPATH is used to help in importing the modules. So, when you import modules in your Python scripts, PYTHONPATH is also checked to see which directories might contain the imported module.

@vaishu.swap10112016

Nice explanation, keep the pace up :relaxed:.