summaryrefslogtreecommitdiff
path: root/buildstream/_elementfactory.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-11-15 18:14:39 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-11-15 18:14:39 +0900
commit14e8161cf9af49ad49a2d3623913175cbe660dc1 (patch)
treee09e8be82d2666983fd4062c25b73ebdb9feb8a5 /buildstream/_elementfactory.py
parent3acb123be6128e07f3ba8d005e3a1a1f24099098 (diff)
downloadbuildstream-14e8161cf9af49ad49a2d3623913175cbe660dc1.tar.gz
_site.py: simplify this file
Now modules import as: from . import _site And refer to things as _site.root, _site.default_config etc. Also now follow principal of least underscores
Diffstat (limited to 'buildstream/_elementfactory.py')
-rw-r--r--buildstream/_elementfactory.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_elementfactory.py b/buildstream/_elementfactory.py
index a473e1d5c..55725a29f 100644
--- a/buildstream/_elementfactory.py
+++ b/buildstream/_elementfactory.py
@@ -18,8 +18,8 @@
# Authors:
# Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
+from . import _site
from ._plugincontext import _PluginContext
-from ._site import _site_info
from .element import Element
# A ElementFactory creates Element instances
@@ -36,7 +36,7 @@ class _ElementFactory(_PluginContext):
if searchpath is None:
searchpath = []
- searchpath.insert(0, _site_info['element_plugins'])
+ searchpath.insert(0, _site.element_plugins)
super().__init__(plugin_base, Element, searchpath)
# create():