in and later and clicking on the file' index entry (see sys path list per sys path is initialized on startupbut thereafter you can deleteappendand reset its components however you likeimport sys sys path [''' :\\temp'' :\\windows\\system \\python zip'more deleted sys path append(' :\\sourcedir'import string extend module search path all imports search the new dir last once you've made such changeit will impact all future imports anywhere while python program runsas all importers share the same single sys path list (there' only one copy of given module in memory during program' run--that' why reload existsin factthis list may be changed arbitrarilysys path [ ' :\temp'sys path append(' :\\lp \\examples'sys path insert( 'sys path ['' :\\temp'' :\\lp \\examples'import string traceback (most recent call last)file ""line in importerrorno module named 'stringchange module search path for this run (processonly thusyou can use this technique to dynamically configure search path inside python program be carefulthoughif you delete critical directory from the pathyou may lose access to critical utilities in the prior examplefor instancewe no longer have changing the module search path