Improve rebuild to work if there is a folder with the same name as a haxelib, which is not a build directory

This commit is contained in:
Joshua Granick
2014-03-31 11:07:10 -07:00
parent b999dee4f3
commit 60a7f67208
2 changed files with 8 additions and 0 deletions

BIN
run.n vendored

Binary file not shown.

View File

@@ -1128,6 +1128,8 @@ class RunScript {
} else { } else {
var haxelib = PathHelper.getHaxelib (new Haxelib (path));
if (FileSystem.isDirectory (path)) { if (FileSystem.isDirectory (path)) {
path = PathHelper.combine (path, "project"); path = PathHelper.combine (path, "project");
@@ -1138,6 +1140,12 @@ class RunScript {
} }
if (!FileSystem.exists (path) && haxelib != null) {
path = PathHelper.combine (haxelib, "project");
}
} }
} }