summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2018-10-23 09:35:59 +0100
committerJürg Billeter <j@bitron.ch>2019-02-11 09:24:48 +0000
commit3f6c50005bf5648e808e811f6c29a8debc2099d2 (patch)
tree22c0116c8c7ffd0ecc901a7660d0a880cfee8294
parent4336e3bfff34e3d1bd1cf5ee4816ba1aa14b9f01 (diff)
downloadbuildstream-3f6c50005bf5648e808e811f6c29a8debc2099d2.tar.gz
_includes: re-use file_path variable
Avoid an unnecessary call to os.path.join().
-rw-r--r--buildstream/_includes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_includes.py b/buildstream/_includes.py
index 7548e155c..1312d1982 100644
--- a/buildstream/_includes.py
+++ b/buildstream/_includes.py
@@ -116,7 +116,7 @@ class Includes:
file_path = os.path.join(directory, include)
key = (current_loader, file_path)
if key not in self._loaded:
- self._loaded[key] = _yaml.load(os.path.join(directory, include),
+ self._loaded[key] = _yaml.load(file_path,
shortname=shortname,
project=project,
copy_tree=self._copy_tree)