[Pkg-bazaar-commits] ./bzr/unstable r799: - tidy up check for plugin path

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:13:42 UTC 2009


------------------------------------------------------------
revno: 799
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Tue 2005-06-28 12:37:21 +1000
message:
  - tidy up check for plugin path
modified:
  bzrlib/plugin.py
-------------- next part --------------
=== modified file 'bzrlib/plugin.py'
--- a/bzrlib/plugin.py	2005-06-27 06:58:04 +0000
+++ b/bzrlib/plugin.py	2005-06-28 02:37:21 +0000
@@ -60,9 +60,7 @@
     from bzrlib.trace import log_error, mutter, log_exception
     from bzrlib.errors import BzrError
 
-    bzrpath = os.environ.get('BZR_PLUGIN_PATH')
-    if bzrpath is None:
-        bzrpath = DEFAULT_PLUGIN_PATH
+    bzrpath = os.environ.get('BZR_PLUGIN_PATH', 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