> Path in Windows XP Home is:
> D:\Phyton25\;D:\Python25Scripts;%SystemRoot%\system32;%SystemRoot%;
> %SystemRoot%\System32\Wbem
>
> When I use the interpreter in PyScripter, I see:
>>>> print sys.path
>
> ['C:\\Windows\\system32\\python25.zip', 'D:\\Python25\\Lib', 'D:\
> \Python25\\DLLs', 'D:\\Python25\\Lib\\lib-tk', 'C:\\Documents and
> Settings\\<username>', 'D:\\Python25', 'D:\\Python25\\lib\\site-
> packages', 'D:\\Python25\\lib\\site-packages\\PIL', 'D:\\Python25\\lib
> \
> \site-packages\\win32', 'D:\\Python25\\lib\\site-packages\\win32\
> \lib', 'D:\\Python25\\lib\\site-packages\\Pythonwin']
>
> Why are these paths different?

The first is the path where Windows looks for executables (PATH).
The second is the path where Python looks for modules, internal and  
external (the latter is most important to you).
The first is used to find eg a Python script, if you try to run it  
from the command line from a different location (directory) than where  
the script is located. The second path is used 'inside' the script to  
be able to find and import modules.

This kind of questions is probably better asked at different mailing  
list, since they are not Django related; eg Python tutor. There's even  
a Dutch Python group, that may be suitable for you as well, [EMAIL PROTECTED] 
: http://mail.python.org/mailman/listinfo/python-nl
The answer here may be useful anyway, since some other people may  
confuse the two paths and would then ask the list how to get eg Django  
running (although not so sure if they would search the list archives  
first).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to