Pythonpath is kind of an environment variable. It is used to import the modules. When the module is imported, it will find the presence of the particular module in the various directories. The interpreter finds which module needs to be loaded.