diff options
Diffstat (limited to 'mesonbuild/modules/__init__.py')
-rw-r--r-- | mesonbuild/modules/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mesonbuild/modules/__init__.py b/mesonbuild/modules/__init__.py index 1cf7c1c..ddb5e3e 100644 --- a/mesonbuild/modules/__init__.py +++ b/mesonbuild/modules/__init__.py @@ -82,7 +82,7 @@ def get_include_args(include_dirs, prefix='-I'): dirs_str = [] for dirs in unholder(include_dirs): if isinstance(dirs, str): - dirs_str += ['%s%s' % (prefix, dirs)] + dirs_str += [f'{prefix}{dirs}'] continue # Should be build.IncludeDirs object. @@ -91,10 +91,10 @@ def get_include_args(include_dirs, prefix='-I'): expdir = os.path.join(basedir, d) srctreedir = os.path.join('@SOURCE_ROOT@', expdir) buildtreedir = os.path.join('@BUILD_ROOT@', expdir) - dirs_str += ['%s%s' % (prefix, buildtreedir), - '%s%s' % (prefix, srctreedir)] + dirs_str += [f'{prefix}{buildtreedir}', + f'{prefix}{srctreedir}'] for d in dirs.get_extra_build_dirs(): - dirs_str += ['%s%s' % (prefix, d)] + dirs_str += [f'{prefix}{d}'] return dirs_str |