i just observed the difference in the path for the cmd and idle. I tried this:
(IN IDLE)
>>> import sys
>>> sys.path
['', 'C:\\Python27\\Lib\\idlelib', '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.executable
'C:\\Python27\\pythonw.exe'
while:
(IN CMD)
>>> import sys
>>> sys.path
['', 'C:\\Windows\\system32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\l
ib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27,
C:\\Python27\\lib\\site-packages']
>>> sys.executable
'C:\\Python27\\python.exe'
My question is that why there is a difference between the python executables of cmd and idle(for idle it is pythonw.exe while for cmd it is python.exe) and how can i permanently make the sys.path point to same paths for cmd as well as idle as using sys.path.append()
will do it temporaraily.Also,i want to know what is the difference between PYTHONPATH and system path.I know ; i have asked many questions but answers will very helpful. THANKS.