~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Martin Pool
  • Date: 2005-06-28 02:37:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050628023721-c4a399594862b28a
- tidy up check for plugin path

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    from bzrlib.trace import log_error, mutter, log_exception
61
61
    from bzrlib.errors import BzrError
62
62
 
63
 
    bzrpath = os.environ.get('BZR_PLUGIN_PATH')
64
 
    if bzrpath is None:
65
 
        bzrpath = DEFAULT_PLUGIN_PATH
 
63
    bzrpath = os.environ.get('BZR_PLUGIN_PATH', DEFAULT_PLUGIN_PATH)
66
64
 
67
65
    # The problem with imp.get_suffixes() is that it doesn't include
68
66
    # .pyo which is technically valid