Python plugins, third round
Aaron Bentley
aaron.bentley at utoronto.ca
Thu Jun 16 14:45:28 BST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John A Meinel wrote:
>> Yes, a system-wide path would be very nice. If we supported packages in
>> there as well as modules, I'd be a happy camper indeed.
>
>
> When you are saying packages, do you mean:
> mypackage/__init__.py ?
> That is much easier to do (and more reasonable) than doing the single
> directory recursion. Since python imports that as "mypackage".
Indeedy. It took me a while to realize that the place for system-wide
bzrlib plugins is probably
'/usr/lib/python2.4/site-packages/bzrplugins', and then it started
making sense to do everything in a standard way from there. It's a bit
more of a pain to prepare the package, but what the hey.
> The only one my revised code didn't support was the plugin/__init__.py
> form. Which is easy to add.
Great.
> The way the current code works is that "builtin" is actually a command,
> not an option. So you have:
> bzr builtin commit --something
Oh, my bad then.
Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCsYJ40F+nu1YWqI0RAoj7AJ4ippmwXFoBLXRHH1i3lk/i9c86WgCbBkX4
B7toAMadgy4BF5f+Hcd2c0w=
=M4C4
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list