Try and make haxelib working directory consistent

This commit is contained in:
Joshua Granick
2017-07-17 15:56:53 -07:00
parent f37f279a6c
commit 1b9423aa53
2 changed files with 5 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ class HaxelibHelper {
public static var debug = false;
public static var pathOverrides = new Map<String, String> ();
public static var workingDirectory = "";
private static var repositoryPath:String;
private static var paths = new Map<String, String> ();
@@ -92,7 +93,7 @@ class HaxelibHelper {
var cacheDryRun = ProcessHelper.dryRun;
ProcessHelper.dryRun = false;
output = HaxelibHelper.runProcess ("", [ "config" ], true, true, true);
output = HaxelibHelper.runProcess (workingDirectory, [ "config" ], true, true, true);
if (output == null) output = "";
ProcessHelper.dryRun = cacheDryRun;
@@ -164,7 +165,7 @@ class HaxelibHelper {
var cacheDryRun = ProcessHelper.dryRun;
ProcessHelper.dryRun = false;
output = HaxelibHelper.runProcess ("", [ "path", name ], true, true, true);
output = HaxelibHelper.runProcess (workingDirectory, [ "path", name ], true, true, true);
if (output == null) output = "";
ProcessHelper.dryRun = cacheDryRun;

View File

@@ -1914,6 +1914,8 @@ class CommandLineTools {
}
HaxelibHelper.workingDirectory = Sys.getCwd ();
}
if (!runFromHaxelib) {