We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46708ff commit 1eb9d79Copy full SHA for 1eb9d79
lib/src/util/io.dart
@@ -21,8 +21,11 @@ const _newline = 0xA;
21
const _carriageReturn = 0xD;
22
23
/// The root directory of the Dart SDK.
24
-final String sdkDir =
25
- p.dirname(p.dirname(Platform.executable));
+final String sdkDir = (() {
+ // TODO(kevmoo): work-around for accessing the SDK root dartbug.com/16994
26
+ var path = new File(Platform.executable).resolveSymbolicLinksSync();
27
+ return p.dirname(p.dirname(path));
28
+})();
29
30
/// The version of the Dart SDK currently in use.
31
final Version _sdkVersion = new Version.parse(
0 commit comments