Files
meeting-assistant/MeetingAssistant/Workflow/WorkflowRulesPathResolver.cs
T
codex 693f52afee
PR and Push Build/Test / build-and-test (push) Successful in 7m0s
Add tray rules and identities editor
2026-05-28 01:28:16 +02:00

18 lines
464 B
C#

namespace MeetingAssistant.Workflow;
public static class WorkflowRulesPathResolver
{
public static string? Resolve(string? configuredPath)
{
if (string.IsNullOrWhiteSpace(configuredPath))
{
return null;
}
var expanded = Environment.ExpandEnvironmentVariables(configuredPath);
return Path.IsPathRooted(expanded)
? Path.GetFullPath(expanded)
: Path.GetFullPath(expanded);
}
}