diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-11 22:55:40 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-11 22:55:40 +0300 |
commit | a3f88e1a495b03f70a1b92564eff949a14c1149b (patch) | |
tree | 4128572b8c5c8612fb16c0ac3a9214dba45ca79e /interpreter.py | |
parent | cf212c16f59c49d863bd5b2fc51fa20adc8b8a9f (diff) | |
download | meson-a3f88e1a495b03f70a1b92564eff949a14c1149b.zip meson-a3f88e1a495b03f70a1b92564eff949a14c1149b.tar.gz meson-a3f88e1a495b03f70a1b92564eff949a14c1149b.tar.bz2 |
Search for Boost libs in all lib dirs.
Diffstat (limited to 'interpreter.py')
-rw-r--r-- | interpreter.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py index 474c2b1..5a7027c 100644 --- a/interpreter.py +++ b/interpreter.py @@ -1083,7 +1083,10 @@ class Interpreter(): self.subdir = subdir buildfilename = os.path.join(self.subdir, environment.build_filename) self.build_def_files.append(buildfilename) - code = open(os.path.join(self.environment.get_source_dir(), buildfilename)).read() + absname = os.path.join(self.environment.get_source_dir(), buildfilename) + if not os.path.isfile(absname): + raise InterpreterException('Nonexistant build def file %s.' % buildfilename) + code = open(absname).read() assert(isinstance(code, str)) try: codeblock = mparser.build_ast(code) |