summaryrefslogtreecommitdiff
path: root/buildstream/_elementfactory.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-09 22:19:35 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-10 15:11:43 +0900
commit95e0d697fec881faa6a833289324a562383c163b (patch)
tree4c9c2acf3c713d024b829348003be7d67e73069a /buildstream/_elementfactory.py
parent5a46880581d010eb1cbb9c3d61f77a725ef23149 (diff)
downloadbuildstream-95e0d697fec881faa6a833289324a562383c163b.tar.gz
pep8 fixes in _elementfactory.py
Diffstat (limited to 'buildstream/_elementfactory.py')
-rw-r--r--buildstream/_elementfactory.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/buildstream/_elementfactory.py b/buildstream/_elementfactory.py
index cd320f6c7..c0ccf2001 100644
--- a/buildstream/_elementfactory.py
+++ b/buildstream/_elementfactory.py
@@ -22,12 +22,13 @@ from . import _site
from ._plugincontext import PluginContext
from .element import Element
+
# A ElementFactory creates Element instances
# in the context of a given factory
#
# Args:
# plugin_base (PluginBase): The main PluginBase object to work with
-# searchpath (list): A list of external paths to search for Element plugins
+# searchpath (list): Search path for external Source plugins
#
class ElementFactory(PluginContext):
@@ -35,7 +36,7 @@ class ElementFactory(PluginContext):
if searchpath is None:
searchpath = []
-
+
searchpath.insert(0, _site.element_plugins)
super().__init__(plugin_base, Element, searchpath)