Browse Source

Make run option respect the dev path

Hugh Sanderson 16 years ago
parent
commit
0bef1f9a6a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      std/tools/haxelib/Main.hx

+ 2 - 1
std/tools/haxelib/Main.hx

@@ -701,7 +701,8 @@ class Main {
 			throw "Project "+project+" is not installed";
 			throw "Project "+project+" is not installed";
 		pdir += "/";
 		pdir += "/";
 		var version = neko.io.File.getContent(pdir+".current");
 		var version = neko.io.File.getContent(pdir+".current");
-		var vdir = pdir + Datas.safe(version);
+		var dev = try neko.io.File.getContent(pdir+".dev") catch( e : Dynamic ) null;
+		var vdir = dev!=null ? dev : pdir + Datas.safe(version);
 		var rdir = vdir + "/run.n";
 		var rdir = vdir + "/run.n";
 		if( !neko.FileSystem.exists(rdir) )
 		if( !neko.FileSystem.exists(rdir) )
 			throw "Project "+project+" version "+version+" does not have a run script";
 			throw "Project "+project+" version "+version+" does not have a run script";