IDLE is the standard python IDE included with every python installation.
Python uses sys.path to look for modules, it includes the contents of PYTHONPATH. We can check the current contents of sys.path from IDLE through File > Path Brower, or by the following command:
import sys sys.path
To load modules from different locations into IDE we can issue the following command:
Note the escaped backslashes, otherwise we will receive ‘Unicode Error‘.
After this we can import ay module from the added location.
If we are on Unix\Linux we can use the following technique to append entries to PYTHONPATH on command line:
PYTHONPATH=/foo/bar/baz python somescript.py somecommand