diff --git a/lime/tools/helpers/HaxelibHelper.hx b/lime/tools/helpers/HaxelibHelper.hx index c6797fb09..cd9adfe59 100644 --- a/lime/tools/helpers/HaxelibHelper.hx +++ b/lime/tools/helpers/HaxelibHelper.hx @@ -15,6 +15,7 @@ class HaxelibHelper { public static var debug = false; public static var pathOverrides = new Map (); + public static var workingDirectory = ""; private static var repositoryPath:String; private static var paths = new Map (); @@ -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; diff --git a/tools/CommandLineTools.hx b/tools/CommandLineTools.hx index c08ee7462..ccf7561fb 100644 --- a/tools/CommandLineTools.hx +++ b/tools/CommandLineTools.hx @@ -1914,6 +1914,8 @@ class CommandLineTools { } + HaxelibHelper.workingDirectory = Sys.getCwd (); + } if (!runFromHaxelib) {