aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-09-07 21:25:34 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-09-07 21:25:34 +0300
commit165f8a913d25cd0cc35639811235f19e15ad08ec (patch)
treef9bdd007a1f873576f558a85e5f40b46f09b7fd5 /mesonbuild/interpreter.py
parent69433025ca8523838dbe55d0c20ea28cbc51cc23 (diff)
downloadmeson-165f8a913d25cd0cc35639811235f19e15ad08ec.zip
meson-165f8a913d25cd0cc35639811235f19e15ad08ec.tar.gz
meson-165f8a913d25cd0cc35639811235f19e15ad08ec.tar.bz2
Better error message when trying to use subprojects as dependencies.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index ad381b6..a1ff257 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -567,7 +567,7 @@ class SubprojectHolder(InterpreterObject):
def __init__(self, subinterpreter):
super().__init__()
- self.subinterpreter = subinterpreter
+ self.held_object = subinterpreter
self.methods.update({'get_variable' : self.get_variable_method,
})
@@ -577,7 +577,7 @@ class SubprojectHolder(InterpreterObject):
varname = args[0]
if not isinstance(varname, str):
raise InterpreterException('Get_variable takes a string argument.')
- return self.subinterpreter.variables[varname]
+ return self.held_object.variables[varname]
class CompilerHolder(InterpreterObject):
def __init__(self, compiler, env):