Ju Hui wrote:
> yes, we can change PYTHONPATH to add some path to sys.path value, but
> how to remove item from sys.path?
> 
That would be

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

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to