From bc8c0730f3389d979569fc1f4c99fb9b8308a923 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 21 Jan 2017 12:42:26 +0530 Subject: [PATCH] Add __repr__ for IncludeDirs Helps debug issues with include directory handling. --- mesonbuild/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mesonbuild/build.py b/mesonbuild/build.py index e5d228484..546643192 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