/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugin.py

  • Committer: Jelmer Vernooij
  • Date: 2019-05-20 03:57:29 UTC
  • mto: This revision was merged to the branch mainline in revision 7328.
  • Revision ID: jelmer@jelmer.uk-20190520035729-9rxvefxkvbbivygy
use default_user_agent function.

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
from importlib import util as importlib_util
50
50
 
51
51
from breezy import (
52
 
    bedding,
 
52
    config,
53
53
    debug,
 
54
    errors,
54
55
    help_topics,
55
56
    trace,
56
57
    )
57
58
""")
58
59
 
59
 
from . import (
60
 
    errors,
61
 
    )
62
 
 
63
60
 
64
61
_MODULE_PREFIX = "breezy.plugins."
65
62
 
228
225
    """
229
226
    path_details = []
230
227
    env = osutils.path_from_environ(key)
231
 
    defaults = {
232
 
        "user": not env,
233
 
        "core": True,
234
 
        "site": True,
235
 
        'entrypoints': False,
236
 
        }
 
228
    defaults = {"user": not env, "core": True, "site": True, 'entrypoints': True}
237
229
    if env:
238
230
        # Add paths specified by user in order
239
231
        for p in env.split(os.pathsep):
410
402
 
411
403
 
412
404
def get_user_plugin_path():
413
 
    return osutils.pathjoin(bedding.config_dir(), 'plugins')
 
405
    return osutils.pathjoin(config.config_dir(), 'plugins')
414
406
 
415
407
 
416
408
def record_plugin_warning(warning_message):