[MERGE][1.0] disable python imports from cwd (problem with python2.4 @ win32: bug #53478)

Robert Collins robertc at robertcollins.net
Sun Nov 25 04:53:07 GMT 2007


On Sat, 2007-11-24 at 17:42 +0200, Alexander Belchenko wrote:


> Yes. Exactly. If you read all comments you'll see that I think this problem
> can not be solved for all possible use cases. Checking that os.getcwd()
> is not C:\Python25\Lib\site-packages or similar path on Linux -- is too much IMO.
> Actually I don't think the bug #53478 it's the bzr bug. And your comment only confirm this.
> This bug only affects Python 2.4, not Python 2.5.
> 
> I really prefer to do not "fix" it.

There's a piece of information I'm not quite clear on.

Does python2.4 on windows put '' in sys.path when bzr is run, or does it
put realpath(cwd()) in sys.path?

If its the former, I think we can robustly fix it. If it's the latter, I
completely agree with Alexander.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20071125/5ab7328d/attachment.pgp 


More information about the bazaar mailing list