Skip to content

Commit b9781a2

Browse files
timoteirosolko
authored andcommitted
Fix PATH for non-Windows hosts (#36)
1 parent ac78ae8 commit b9781a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebDriverManager/Services/Impl/VariableService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ protected void UpdatePath(string path)
1616
var pathVariable = Environment.GetEnvironmentVariable(name, EnvironmentVariableTarget.Process);
1717
if (pathVariable == null) throw new ArgumentNullException($"Can't get {name} variable");
1818
path = Path.GetDirectoryName(path);
19-
var newPathVariable = $"{path};{pathVariable}";
19+
var newPathVariable = $"{path}{Path.PathSeparator}{pathVariable}";
2020
if (path != null && !pathVariable.Contains(path))
2121
Environment.SetEnvironmentVariable(name, newPathVariable, EnvironmentVariableTarget.Process);
2222
}
2323
}
24-
}
24+
}

0 commit comments

Comments
 (0)