[PATCH][BUG] BZR_PLUGIN_PATH='' loads from ~/.bzr.conf/plugins
John A Meinel
john at arbash-meinel.com
Mon Jun 27 04:03:10 BST 2005
The problem is that it is not possible to set the environment variable,
such that no plugins are loaded. The problem is the code:
bzrpath = os.environ.get('BZR_PLUGIN_PATH')
if not bzrpath:
bzrpath = DEFAULT
The problem is that "if not bzrpath" is true both when bzrpath is None,
and when it is the empty string.
Also, this probably should use osutils.config_dir() since that is the
central point where "~/.bzr.conf/" is defined. This also helps for the
possible future when the configure directory will change on Win32 (it
really should be in $APPDATA).
Anyway, the attached path fixes both issues.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: plugin-empty-path.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050626/ce2c4c10/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050626/ce2c4c10/attachment.pgp
More information about the bazaar
mailing list