Python Path
Question: I am installing active python, django. I really dont know how to set the
python path in vista environment system. first of all will it work in vista.


Answer: # Temporary Change

To change the python path temporarily (i.e., for one interactive session),
just append to `sys.path` like this:

    
    
    >>> import sys
    >>> sys.path
    ['',
     'C:\\Program Files\\PyScripter\\Lib\\rpyc.zip',
     'C:\\Windows\\system32\\python27.zip',
     'C:\\Python27\\DLLs',
     'C:\\Python27\\lib',
     'C:\\Python27\\lib\\plat-win',
     'C:\\Python27\\lib\\lib-tk',
     'C:\\Python27',
     'C:\\Python27\\lib\\site-packages']
    >>> sys.path.append(directory_to_be_added)
    

# Permanent (More or Less) Change

Go to `Computer -> System Properties (Either by the big button near the title
bar or in the context-menu by right-clicking) -> Advanced Settings (in the
right-hand nav bar) -> Environment Variables`. In the `System Variables`,
either add a variable called `PYTHONPATH` (if it's not already there, i.e., if
you haven't done this before) or edit the existing variable.

You should enter the directories normally (take care to use backslashes, not
the normal ones) separated by a semicolon (`;`) w/o a space. Be careful not to
end with a semicolon.

The directories that you just entered now will be _added_ to `sys.path`
whenever you open a interpreter, they won't replace it. Also, the changes will
take place only after you've restarted the interpreter.

* * *

Source: <http://greeennotebook.com/2010/06/how-to-change-pythonpath-in-
windows-and-ubuntu/>

