Re: how to change sys.path?



[Please provide some context when you respond in an existing
discussion, by quoting the original message and removing any parts
irrelevant to your reply.]

"Ju Hui" <phpbird@xxxxxxxxx> writes:

yes, we can change PYTHONPATH to add some path to sys.path value, but
how to remove item from sys.path?

As pointed out already, sys.path is a list, which can be manipulated
like any other list.

<URL:http://docs.python.org/lib/typesseq-mutable.html>

--
\ "I have never made but one prayer to God, a very short one: 'O |
`\ Lord, make my enemies ridiculous!' And God granted it." -- |
_o__) Voltaire |
Ben Finney

.



Relevant Pages

  • Re: cn_queue.c
    ... >> only after it refcnt is being checked to be zero. ... > holding the same lock in process or bh context it will deadlock in IRQ ... and atomically disallows[for example removing workqueue, ... any other work appointment for the given object. ...
    (Linux-Kernel)
  • Re: A question for the group...
    ... There is often a narrow border between quoting with context and ... sort of memory - in the main, it's not mine, but my type of memory ... and the footnote system would often be better. ...
    (soc.genealogy.computing)
  • Re: Two Outlooks on one machine
    ... When this individual attains a satisfactory standard in english expression, ... - Quoting and Answering ... A clarify the context, ... In general, signatures have nothing to do with the context of the article, ...
    (microsoft.public.outlook)
  • Re: Disguising trollmeat
    ... me quoting him out of context or misconstruing his position or whatever. ... realized that *everybody* he dislikes is a Willie sock and we're ...
    (alt.guitar.amps)
  • Re: Mail etiquette (was: What is this mean by this term)
    ... different people configure and use their email clients in different ... message as soon as it arrives. ... There it is often the case that people do not have the original message ... to get the context from. ...
    (freebsd-questions)