aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/introspection.py
diff options
context:
space:
mode:
authorDaniel Schulte <trilader@schroedingers-bit.net>2019-01-30 21:30:52 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-03-01 23:40:33 +0200
commitf0b0bcf86d195cc65918eea0de2c92083ac39f3f (patch)
treef04e32d6e39b904f0e1ea9a1db7dea02afb89c75 /mesonbuild/ast/introspection.py
parent924cf5e6220836be7ba9b53082948315497fce30 (diff)
downloadmeson-f0b0bcf86d195cc65918eea0de2c92083ac39f3f.zip
meson-f0b0bcf86d195cc65918eea0de2c92083ac39f3f.tar.gz
meson-f0b0bcf86d195cc65918eea0de2c92083ac39f3f.tar.bz2
mintro: Add subproject_dir to --projectinfo
Diffstat (limited to 'mesonbuild/ast/introspection.py')
-rw-r--r--mesonbuild/ast/introspection.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/ast/introspection.py b/mesonbuild/ast/introspection.py
index f0ff43f..4a6e6de 100644
--- a/mesonbuild/ast/introspection.py
+++ b/mesonbuild/ast/introspection.py
@@ -96,8 +96,8 @@ class IntrospectionInterpreter(AstInterpreter):
if not self.is_subproject() and 'subproject_dir' in kwargs:
spdirname = kwargs['subproject_dir']
- if isinstance(spdirname, str):
- self.subproject_dir = spdirname
+ if isinstance(spdirname, mparser.ElementaryNode):
+ self.subproject_dir = spdirname.value
if not self.is_subproject():
self.project_data['subprojects'] = []
subprojects_dir = os.path.join(self.source_root, self.subproject_dir)