Browse Source

minor : add previous directory parameter to 'run'.

Nicolas Cannasse 18 years ago
parent
commit
85e17a41ea
1 changed files with 1 additions and 0 deletions
  1. 1 0
      std/tools/haxelib/Main.hx

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

@@ -661,6 +661,7 @@ class Main {
 		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";
+		args.push(neko.Sys.getCwd());
 		neko.Sys.setCwd(vdir);
 		neko.Sys.setCwd(vdir);
 		var cmd = "neko run.n";
 		var cmd = "neko run.n";
 		for( i in argcur...args.length )
 		for( i in argcur...args.length )