how to clean sys.path

siggi smusnmrNOSPAM at
Tue Jan 9 11:09:57 EST 2007

Hi all,

when I do >>>sys.path in IDLE (winXP), i get a horrendously long list of 
paths, paths I may have used during a lot of trials and errors. How can I 
clean up sys.path? I mean, trim it of unnecessary paths?

So far, I know only the command >>>sys.path.append(r'c:....etc...'), but how 
to delete or insert at the beginning of the list, I know not.



More information about the Python-list mailing list