diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-18 20:55:10 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-10-18 20:55:10 +0300 |
commit | ae06ca2afc58901d9d72f13f662701cf12281b51 (patch) | |
tree | 25421861a84584438b39a3972b62d7398ac5d99b /interpreter.py | |
parent | 4a899f2d9becbd204e6f63dbf4fb7be921a1ce71 (diff) | |
download | meson-ae06ca2afc58901d9d72f13f662701cf12281b51.zip meson-ae06ca2afc58901d9d72f13f662701cf12281b51.tar.gz meson-ae06ca2afc58901d9d72f13f662701cf12281b51.tar.bz2 |
User options now do a full round trip.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interpreter.py b/interpreter.py index 5c3a317..fe1efd5 100644 --- a/interpreter.py +++ b/interpreter.py @@ -703,9 +703,9 @@ class Interpreter(): optname = args[0] if not isinstance(optname, str): raise InterpreterException('Argument of get_option must be a string.') - if optname not in self.build.user_options: + if optname not in self.environment.coredata.user_options: raise InterpreterException('Tried to access unknown option "%s".' % optname) - return self.build.user_options[optname].value + return self.environment.coredata.user_options[optname].value def func_configuration_data(self, node, args, kwargs): if len(args) != 0: |