/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: 2020-05-24 00:42:36 UTC
  • mto: This revision was merged to the branch mainline in revision 7505.
  • Revision ID: jelmer@jelmer.uk-20200524004236-jdj6obo4k5lznqw2
Cleanup Windows functions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
def _env_disable_plugins(key='BRZ_DISABLE_PLUGINS'):
190
190
    """Gives list of names for plugins to disable from environ key."""
191
191
    disabled_names = []
192
 
    env = osutils.path_from_environ(key)
 
192
    env = os.environ.get(key)
193
193
    if env:
194
194
        for name in env.split(os.pathsep):
195
195
            name = _expect_identifier(name, key, env)
201
201
def _env_plugins_at(key='BRZ_PLUGINS_AT'):
202
202
    """Gives list of names and paths of specific plugins from environ key."""
203
203
    plugin_details = []
204
 
    env = osutils.path_from_environ(key)
 
204
    env = os.environ.get(key)
205
205
    if env:
206
206
        for pair in env.split(os.pathsep):
207
207
            if '@' in pair:
222
222
    'path', or None and one of the values 'user', 'core', 'entrypoints', 'site'.
223
223
    """
224
224
    path_details = []
225
 
    env = osutils.path_from_environ(key)
 
225
    env = os.environ.get(key)
226
226
    defaults = {
227
227
        "user": not env,
228
228
        "core": True,