~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/plugin.py

  • Committer: Martin Pool
  • Date: 2005-06-22 06:59:55 UTC
  • Revision ID: mbp@sourcefrog.net-20050622065955-ee95fa438caf29e2
- default plugin dir is ~/.bzr.conf/plugins

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    paths to look through. Each entry is searched for *.py files (and whatever
41
41
    other extensions are used in the platform, such as *.pyd).
42
42
    """
43
 
    bzrpath = os.environ.get('BZR_PLUGIN_PATH', os.path.expanduser())
 
43
    bzrpath = os.environ.get('BZR_PLUGIN_PATH')
 
44
    if not bzrpath:
 
45
        bzrpath = os.path.expanduser(DEFAULT_PLUGIN_PATH)
44
46
 
45
47
    # The problem with imp.get_suffixes() is that it doesn't include
46
48
    # .pyo which is technically valid