>>> Import Sys
>>> SYS. Path
[ '' , ' C: \ python26 \ python26.zip ' , ' C: \ python26 \ DLLs ' , ' C: \ python26 \ Lib ' , ' C
: \ Python26 \ Lib \ Plat - Win ' , ' C: \ python26 \ Lib - TK ' , ' C: \ python26 ' , ' C: \ P
Ython26 \ Lib \ Site - Packages ' ]
>>> Sys
< Module ' Sys ' (Built - In ) >
>>> SYS. Path. append ( ' D: \ svntest ' )
>>> SYS. Path
[ '' , ' C: \ python26 \ python26.zip ' , ' C: \ python26 \ DLLs ' , ' C: \ python26 \ Lib ' , ' C
: \ Python26 \ Lib \ Plat - Win ' , ' C: \ python26 \ Lib - TK ' , ' C: \ python26 ' , ' C: \ P
Ython26 \ Lib \ Site - Packages ' , ' D: \ svntest ' ]
Notes:
- ImportingSysModule makes all of its functions and attributes available
- You can add a new directoryPython'S search path at runtime by appending the directory nameSYS. Path, And thenPythonWill look in that directory as well, whenever you try to import a module. The effect lasts as longPythonIs running.