Skip to content

Commit

Permalink
Merge pull request HaxeFoundation#139 from andyli/tools-fix
Browse files Browse the repository at this point in the history
Fixed `haxelib path ...` parsing.
  • Loading branch information
ncannasse committed Dec 8, 2014
2 parents 3c29cf0 + 9aa206d commit 4fdd8ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/hxcpp/PathManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class PathManager

try
{
output = ProcessManager.runProcess(Sys.getEnv ("HAXEPATH"), "haxelib", [ "path", name ], true, false);
output = ProcessManager.runProcess(Sys.getEnv ("HAXEPATH"), "haxelib", [ "path", name ], true, false);
}
catch (e:Dynamic) {}

Expand All @@ -117,7 +117,7 @@ class PathManager

for (i in 1...lines.length)
{
if (StringTools.trim(lines[i]) == "-D " + haxelib)
if (StringTools.startsWith(StringTools.trim(lines[i]), "-D " + haxelib))
{
result = StringTools.trim(lines[i - 1]);
}
Expand Down

0 comments on commit 4fdd8ca

Please sign in to comment.