Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Unified Diff: tools/utils.py

Issue 11098046: Move a helper function to find out Dart binary into utils.py (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « tools/test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698