Skip to content

Commit

Permalink
fixed Config.exe for windows 10
Browse files Browse the repository at this point in the history
  • Loading branch information
ncannasse committed Apr 2, 2018
1 parent fc30736 commit 91ebdec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Binary file modified haxe/Config.exe
Binary file not shown.
10 changes: 7 additions & 3 deletions haxe/Config.hx
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,13 @@ class Config {
break;
}
}
if( foundPath.toUpperCase().indexOf("%OCAMHAXE%") < 0 )
foundPath += ";%OCAMHAXE%";

if( foundPath.toUpperCase().indexOf("%OCAMHAXE%") < 0 ) {
if( StringTools.endsWith(foundPath,";") )
foundPath += "%OCAMHAXE%;";
else
foundPath += ";%OCAMHAXE%";
}

// apply environment changes
// using regedit is the best to preserve PATH with special chars
log("Updating Environment...");
Expand Down

0 comments on commit 91ebdec

Please sign in to comment.