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

Unified Diff: lib/src/util/io.dart

Issue 1098793002: pkg/test: calculate the SDK dir in one place (Closed) Base URL: https://github.com/dart-lang/test.git@master
Patch Set: rebase Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/util/io.dart
diff --git a/lib/src/util/io.dart b/lib/src/util/io.dart
index 2f53610bd29418b83e87e91e879d7ec1c159c602..cb35ed7c25a302d53e08aaa633f7b6fa60b27520 100644
--- a/lib/src/util/io.dart
+++ b/lib/src/util/io.dart
@@ -20,7 +20,7 @@ final String sdkDir =
/// The version of the Dart SDK currently in use.
final Version _sdkVersion = new Version.parse(
- new File(p.join(p.dirname(p.dirname(Platform.executable)), 'version'))
+ new File(p.join(sdkDir, 'version'))
.readAsStringSync().trim());
/// Returns the current operating system.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698