Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

Commit

Permalink
chore(transformers): use dartSdkDirectory from code_transformers
Browse files Browse the repository at this point in the history
Closes #1143
  • Loading branch information
cbracken authored and jbdeboer committed Jun 19, 2014
1 parent 67de9f3 commit a12289f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/transformer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@ TransformOptions _parseSettings(Map args) {
injectedTypes.addAll(_readStringListValue(args, 'injected_types'));

var sdkDir = _readStringValue(args, 'dart_sdk', required: false);
if (sdkDir == null) {
// Assume the Pub executable is always coming from the SDK.
sdkDir = path.dirname(path.dirname(Platform.executable));
}
if (sdkDir == null) sdkDir = dartSdkDirectory;

var diOptions = new di.TransformOptions(
injectableAnnotations: annotations,
Expand Down

0 comments on commit a12289f

Please sign in to comment.