[Pkg-bazaar-commits] ./bzr/unstable r739: - default plugin dir is ~/.bzr.conf/plugins

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:20:53 UTC 2009


------------------------------------------------------------
revno: 739
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-06-22 16:59:55 +1000
message:
  - default plugin dir is ~/.bzr.conf/plugins
modified:
  bzrlib/plugin.py
-------------- next part --------------
=== modified file 'bzrlib/plugin.py'
--- a/bzrlib/plugin.py	2005-06-22 06:59:06 +0000
+++ b/bzrlib/plugin.py	2005-06-22 06:59:55 +0000
@@ -40,7 +40,9 @@
     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())
+    bzrpath = os.environ.get('BZR_PLUGIN_PATH')
+    if not bzrpath:
+        bzrpath = os.path.expanduser(DEFAULT_PLUGIN_PATH)
 
     # 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