diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-19 21:25:28 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-19 21:25:28 +0200 |
commit | 7e8872236d1c8b8baca910a3c03b0399ed94dbea (patch) | |
tree | dba05544775280fbbf85505bfd4eb9da10de02ae /mesonast.py | |
parent | 7ed7219d9d937103c9d6760dfdcd7c6d895c1745 (diff) | |
download | meson-7e8872236d1c8b8baca910a3c03b0399ed94dbea.zip meson-7e8872236d1c8b8baca910a3c03b0399ed94dbea.tar.gz meson-7e8872236d1c8b8baca910a3c03b0399ed94dbea.tar.bz2 |
Implement a bunch of functions.
Diffstat (limited to 'mesonast.py')
-rwxr-xr-x | mesonast.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mesonast.py b/mesonast.py index 8618f5a..7f5fd90 100755 --- a/mesonast.py +++ b/mesonast.py @@ -25,7 +25,12 @@ import mesonbuild.astinterpreter +import sys + if __name__ == '__main__': - source_root = 'test cases/common/1 trivial' + if len(sys.argv) == 1: + source_root = 'test cases/common/1 trivial' + else: + source_root = sys.argv[1] ast = mesonbuild.astinterpreter.AstInterpreter(source_root, '') ast.dump() |