diff options
author | Angelos Evripiotis <jevripiotis@bloomberg.net> | 2018-10-23 09:35:59 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2019-02-11 09:24:48 +0000 |
commit | 3f6c50005bf5648e808e811f6c29a8debc2099d2 (patch) | |
tree | 22c0116c8c7ffd0ecc901a7660d0a880cfee8294 /buildstream/_includes.py | |
parent | 4336e3bfff34e3d1bd1cf5ee4816ba1aa14b9f01 (diff) | |
download | buildstream-3f6c50005bf5648e808e811f6c29a8debc2099d2.tar.gz |
_includes: re-use file_path variable
Avoid an unnecessary call to os.path.join().
Diffstat (limited to 'buildstream/_includes.py')
-rw-r--r-- | buildstream/_includes.py | 2 |
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) |