Merge pull request #15156 from keymanapp/fix/windows/handle-keyman-root-forward-slash

fix(windows): handle forward slash for KEYMAN_ROOT env var
This commit is contained in:
Marc Durdin 2025-11-17 17:02:41 +01:00 committed by GitHub
commit 89597cf8a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -395,7 +395,7 @@ var
begin
// On developer machines, if we are running within the source repo, then use
// those paths
keyman_root := GetEnvironmentVariable('KEYMAN_ROOT');
keyman_root := GetEnvironmentVariable('KEYMAN_ROOT').Replace('/', '\');
if (keyman_root <> '') and SameText(keyman_root, ParamStr(0).Substring(0, keyman_root.Length)) then
begin
// Source repo, bin folder