KillaBee wrote: > I need to edit my pythonpath, but where it? > Your PYTHONPATH isn't a file. It is a list of directories that python searches through to find python code. When you type 'import django' it looks in the first directory for code that provides the Django module, then the next, and the next until it finds it.
if you set an environmental variable before running python, you can tack
on a list of directories to the front of the PYTHONPATH that python uses.
if you are using bash, type `export PYTHONPATH=/path/to/dir1:/path/to/dir2`
To see what your pythonpath is from inside python, do this:
import sys
print sys.path
sys.path is just a python list that contains strings that are the
directories python will look into. You can modify this list from inside
python to control what your python path will be.
Hopefully this is helpful.
ps-- all this information is in nearly every python book available, and
freely available on the internet. Try googling for "python path" and I'm
sure this information would have come up in your search. This isn't even
Django specific-- this is a python question.
Cheers!
Jeff Anderson
signature.asc
Description: OpenPGP digital signature

