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

Alexander Belchenko bialix at ukr.net
Sat Nov 24 14:57:37 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

This patch fixes problem with python 2.4 that annoys me for years:

if I have bzr installed for my Python (i.e. in site-packages) and
I cd to bzr sources directory, then running system-wide bzr I constantly
have problems because bzr try to import bzrlib from current directory
first, not from site-packages.

Proposed patch fixes all possible variants and works with 2.4 and 2.5.
In my strong opinion we should not manipulate with sys.path in bzrlib itself,
only in bzr script. Therefore I did only manual testing.

More details about this bug see in comments:
https://bugs.launchpad.net/bzr/+bug/53478

Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHSDvhzYr338mxwCURAiMjAJ9NjbWJ/DsTLoW/0a5+DN9OEq0ndQCePAao
hSnBE8SDCSpcn30qPk6ehm8=
=FYYm
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bzr-mail-cthxyi.patch
Url: https://lists.ubuntu.com/archives/bazaar/attachments/20071124/61d76b99/attachment.diff 


More information about the bazaar mailing list