On Fri, Nov 17, 2006 at 11:23:51PM -0000, Martin Pool wrote:
> Good idea, thanks.

Sure.  You probably want something like this:

--------------------------------------------------------------------------------
import os, sys

cwd = os.getcwd()
if not (cwd == os.path.dirname(os.__file__))):
    sys.path.remove(cwd)
sys.path.remove('')
--------------------------------------------------------------------------------

Not to tell you what to do :)  Just felt bad for recommending the wrong option
before.

-Forest

-- 
bzr fails when run within certain Python code trees
https://launchpad.net/bugs/72227

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to