Add __repr__ for IncludeDirs

Helps debug issues with include directory handling.
pull/1321/head
Nirbheek Chauhan 8 years ago
parent 2bb58c909f
commit bc8c0730f3
  1. 4
      mesonbuild/build.py

@ -170,6 +170,10 @@ class IncludeDirs:
else: else:
self.extra_build_dirs = extra_build_dirs 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): def get_curdir(self):
return self.curdir return self.curdir

Loading…
Cancel
Save