Explorar o código

fixed relDir calculus

ncannasse %!s(int64=6) %!d(string=hai) anos
pai
achega
f1aa5d332d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      other/haxelib/Run.hx

+ 2 - 2
other/haxelib/Run.hx

@@ -41,10 +41,10 @@ class Build {
 				targetDir += "/";
 			var targetAbs = sys.FileSystem.absolutePath(targetDir);
 			var currentAbs = sys.FileSystem.absolutePath(this.targetDir);
-			if( !StringTools.startsWith(currentAbs, targetAbs) )
+			if( !StringTools.startsWith(currentAbs, targetAbs+"/") )
 				relDir = currentAbs+"/"; // absolute
 			else 
-				relDir = currentAbs.substr(targetAbs.length);
+				relDir = currentAbs.substr(targetAbs.length+1);
 			relDir = relDir.split("\\").join("/");
 		}
 		if( !sys.FileSystem.exists(srcDir) ) {