| Index: mojo/dart/tools/find_api_include_path.py
|
| diff --git a/mojo/dart/tools/find_api_include_path.py b/mojo/dart/tools/find_api_include_path.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3ae13a2eace7b1e9d65cffd48548e384f89b8000
|
| --- /dev/null
|
| +++ b/mojo/dart/tools/find_api_include_path.py
|
| @@ -0,0 +1,16 @@
|
| +# Copyright 2014 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +import sys
|
| +
|
| +from distutils.spawn import find_executable
|
| +from os.path import realpath, abspath, join, dirname
|
| +
|
| +def main():
|
| + dart_bin_path = dirname(realpath(find_executable("dart")))
|
| + include_path = abspath(join(dart_bin_path, '..', 'include'))
|
| + print include_path
|
| +
|
| +if __name__ == '__main__':
|
| + sys.exit(main())
|
|
|