Index: tools/utils.py |
diff --git a/tools/utils.py b/tools/utils.py |
index 1c6ef7ffae7dc5382a73f6ef7650302e305d481c..2ae3821c849d5eed6503f58420b265dc9403a223 100644 |
--- a/tools/utils.py |
+++ b/tools/utils.py |
@@ -297,6 +297,15 @@ def Touch(name): |
os.utime(name, None) |
+def DartBinary(): |
+ tools_dir = os.path.dirname(os.path.realpath(__file__)) |
+ dart_binary_prefix = os.path.join(tools_dir, 'testing', 'bin') |
+ if IsWindows(): |
+ return os.path.join(dart_binary_prefix, 'windows', 'dart.exe') |
+ else: |
+ return os.path.join(dart_binary_prefix, GuessOS(), 'dart') |
+ |
+ |
if __name__ == "__main__": |
import sys |
Main(sys.argv) |