Re: how to clean sys.path

2007-01-13 Thread Siggi
"Tim Roberts" wrote: >wxDemos contains the demos. The "wx" module lives in >site-packages\wx-2.8-msw-ansi. Did you leave that in? Yes! Even on this computer I am writing now with - where the whole Python programs stuff is in a programs folder, such as C:\Programs\Python25\Lib\site-packages\wx

Re: how to clean sys.path

2007-01-12 Thread Tim Roberts
"siggi" <[EMAIL PROTECTED]> wrote: > >or in plain DOS: > >C:\Documents and Settings\User\My Documents\My Python files >C:\Documents and Settings\User\My Documents\Python25\Lib\idlelib >C:\Documents and Settings\User\My Documents\Python25\python25.zip >C:\Documents and Settings\User\My Documents\Pyt

Re: how to clean sys.path

2007-01-11 Thread siggi
"Tim Roberts" wrote: >> >>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? > > What do mean by "used during a lot of trials and errors"? s

Re: how to clean sys.path

2007-01-10 Thread Tim Roberts
"siggi" <[EMAIL PROTECTED]> wrote: > >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? What do mean by "used during a lot of trials and err

Re: how to clean sys.path

2007-01-09 Thread siggi
Thank you Laszlo! Take care, siggi "Laszlo Nagy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > >> >> 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. >> > You can delete a slice.

Re: how to clean sys.path

2007-01-09 Thread Laszlo Nagy
> > 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. > You can delete a slice. For example, del sys.path[2:5] More about slicing: http://docs.python.org/ref/slicings.html sys.path is a regular list. L