What is the PATH?
The PATH environment variable is in general a list of directories that the operating system will search through when programs attempt to execute a command.
For example, say we go into the windows command prompt or Ubuntu’s bash shell and type in “foobar” – the operating system will attempt to locate an executable (program) named “foobar” in the folders listed in the PATH. Replace “foobar” with “python” or “django-admin.py” and you start to understand why this is useful.
How do we set the PATH?
To set the PATH on Vista or Windows 7:
Push the windows button and type “environment variable” on the search bar and select “Edit environment variables for your account”.
Non Vista/Windows 7 users just right click on My Computer, go to Properties, click Advanced Properties, then the Environment Variables button to get to the same place.
In the Environment Variables screen, look for the “Path” variable under the “System Variables” section on the bottom. If it doesn’t exist, just make a new one.
Edit or enter in folder paths separated by ; — Append whatever you like to the string ending with a “;”
Do not delete the default path – append to it.
Path2;Path2;Path3;
Done!


