|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
sys.path
Hi,
When I use the sys.path command I get a list of paths Code:
>>> sys.path ['', 'C:\\WINDOWS\\system32\\python23.zip', 'C:\\Python23', 'C:\\Python23\\DLLs', 'C:\\Python23\\lib', 'C:\\Python23\\lib\\plat-win', 'C:\\Python23\\lib\\lib-tk', 'C:\\Python23\\Lib\\site-packages\\pythonwin', 'C:\\Python23\\Lib\\site-packages\\win32', 'C:\\Python23\\Lib\\site-packages\\win32\\lib', 'C:\\Python23\\lib\\site-packages'] why is that so? Rgds, Subha ![]() |
|
#2
|
|||
|
|||
|
From the docs for the sys module:
Quote:
sys.path contains a list of directories because Python can search for module files in multiple locations. Dave |
|
#3
|
|||
|
|||
|
Thanks Dave, wasn't aware of this concept!
Subha ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Python Programming > sys.path |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|