[Pkg-bazaar-commits] ./bzr/unstable r738: - default plugin dir is ~/.bzr.conf/plugins
Martin Pool
mbp at sourcefrog.net
Fri Apr 10 08:20:53 UTC 2009
------------------------------------------------------------
revno: 738
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 16:59:06 +1000
message:
- default plugin dir is ~/.bzr.conf/plugins
modified:
TODO
bzrlib/plugin.py
-------------- next part --------------
=== modified file 'TODO'
--- a/TODO 2005-06-21 06:10:54 +0000
+++ b/TODO 2005-06-22 06:59:06 +0000
@@ -314,6 +314,9 @@
* Split out upgrade functionality from check command into a separate
``bzr upgrade``.
+* Don't pass around command classes but rather pass objects. This'd
+ make it cleaner to construct objects wrapping external commands.
+
Large things
------------
=== modified file 'bzrlib/plugin.py'
--- a/bzrlib/plugin.py 2005-06-22 06:04:43 +0000
+++ b/bzrlib/plugin.py 2005-06-22 06:59:06 +0000
@@ -26,10 +26,13 @@
try:
set
except NameError:
- from sets import Set as set
+ from sets import Set as set # python2.3
from bzrlib.trace import log_error
+DEFAULT_PLUGIN_PATH = '~/.bzr.conf/plugins'
+
+
def load_plugins():
"""Find all python files which are plugins, and load them
@@ -37,7 +40,7 @@
paths to look through. Each entry is searched for *.py files (and whatever
other extensions are used in the platform, such as *.pyd).
"""
- bzrpath = os.environ.get('BZR_PLUGIN_PATH', os.path.expanduser('~/.bzr/plugins'))
+ bzrpath = os.environ.get('BZR_PLUGIN_PATH', os.path.expanduser())
# The problem with imp.get_suffixes() is that it doesn't include
# .pyo which is technically valid
More information about the Pkg-bazaar-commits
mailing list