Skip to content

Commit

Permalink
Merge pull request pyrevitlabs#2538 from pyrevitlabs/fix/cli-runner-p…
Browse files Browse the repository at this point in the history
…aths-9680

fix: Handle netcore/netfx folders in CLI runner path resolution
  • Loading branch information
jmcouffin authored Jan 24, 2025
2 parents e70ba0b + c1c14a0 commit 7ee88d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dev/pyRevitLoader/Source/PyRevitRunnerCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ public Result Execute(ExternalCommandData commandData, ref string message, Eleme
private static string GetDeployPath() {
var loaderDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
var engineDir = Path.GetDirectoryName(loaderDir);
var binDir = Path.GetDirectoryName(engineDir);
var runtimeDir = Path.GetDirectoryName(engineDir); // netcore or netfx
var binDir = Path.GetDirectoryName(runtimeDir);
return Path.GetDirectoryName(binDir);
}

Expand Down

0 comments on commit 7ee88d8

Please sign in to comment.