diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-21 12:42:26 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-01-28 05:09:58 +0530 |
commit | bc8c0730f3389d979569fc1f4c99fb9b8308a923 (patch) | |
tree | 8e7c2828e70409979a3ffe06a67145c7f8655efb | |
parent | 2bb58c909fd80cc8ce053b5f1b6565bd28a416d2 (diff) | |
download | meson-bc8c0730f3389d979569fc1f4c99fb9b8308a923.zip meson-bc8c0730f3389d979569fc1f4c99fb9b8308a923.tar.gz meson-bc8c0730f3389d979569fc1f4c99fb9b8308a923.tar.bz2 |
Add __repr__ for IncludeDirs
Helps debug issues with include directory handling.
-rw-r--r-- | mesonbuild/build.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index e5d2284..5466431 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -170,6 +170,10 @@ class IncludeDirs: else: self.extra_build_dirs = extra_build_dirs + def __repr__(self): + r = '<{} {}/{}>' + return r.format(self.__class__.__name__, self.curdir, self.incdirs) + def get_curdir(self): return self.curdir |