|
|
@ -1,5 +1,7 @@
|
|
|
|
from collections import defaultdict
|
|
|
|
from collections import defaultdict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Internal only - no backwards compatibility guaranteed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Indirect:
|
|
|
|
class Indirect:
|
|
|
|
def __init__(self, initial, /):
|
|
|
|
def __init__(self, initial, /):
|
|
|
@ -9,23 +11,17 @@ class Indirect:
|
|
|
|
return f'{type(self).__name__}({self.value!r})'
|
|
|
|
return f'{type(self).__name__}({self.value!r})'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Internal only - no backwards compatibility guaranteed
|
|
|
|
|
|
|
|
postprocessors = Indirect({})
|
|
|
|
postprocessors = Indirect({})
|
|
|
|
extractors = Indirect({})
|
|
|
|
extractors = Indirect({})
|
|
|
|
|
|
|
|
|
|
|
|
IN_CLI = Indirect(False)
|
|
|
|
IN_CLI = Indirect(False)
|
|
|
|
# `False`=force, `None`=disabled, `True`=enabled
|
|
|
|
# `False`=force, `None`=disabled, `True`=enabled
|
|
|
|
LAZY_EXTRACTORS = Indirect(False)
|
|
|
|
LAZY_EXTRACTORS = Indirect(False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Plugins
|
|
|
|
# Plugins
|
|
|
|
|
|
|
|
|
|
|
|
plugin_specs = Indirect({})
|
|
|
|
plugin_specs = Indirect({})
|
|
|
|
|
|
|
|
|
|
|
|
# Whether plugins have been loaded once
|
|
|
|
|
|
|
|
all_plugins_loaded = Indirect(False)
|
|
|
|
all_plugins_loaded = Indirect(False)
|
|
|
|
|
|
|
|
|
|
|
|
plugins_enabled = Indirect(True)
|
|
|
|
plugins_enabled = Indirect(True)
|
|
|
|
|
|
|
|
|
|
|
|
plugin_dirs = Indirect(['external'])
|
|
|
|
plugin_dirs = Indirect(['external'])
|
|
|
|
plugin_ies = Indirect({})
|
|
|
|
plugin_ies = Indirect({})
|
|
|
|
plugin_overrides = Indirect(defaultdict(list))
|
|
|
|
plugin_overrides = Indirect(defaultdict(list))
|
|
|
|