Re: how to change sys.path?
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Wed, 24 May 2006 11:56:06 +0100
Ju Hui wrote:
yes, we can change PYTHONPATH to add some path to sys.path value, butThat would be
how to remove item from sys.path?
del sys.path[3]
for example. Of course you may need to search sys.path to determine the exact element you need to delete, but sys.path is just like any other list in Python and can (as many people have already said in this thread) be manipulated just like al the others.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Love me, love my blog http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
.
- References:
- how to change sys.path?
- From: Ju Hui
- Re: how to change sys.path?
- From: bruno at modulix
- Re: how to change sys.path?
- From: Ju Hui
- Re: how to change sys.path?
- From: Bruno Desthuilliers
- Re: how to change sys.path?
- From: Ben Finney
- Re: how to change sys.path?
- From: Ju Hui
- how to change sys.path?
- Prev by Date: Re: ftputil.py
- Next by Date: Re: referrers
- Previous by thread: Re: how to change sys.path?
- Next by thread: Re: how to change sys.path?
- Index(es):